Cell Click - Row data object

Answered
Ravi Kumar asked on April 28, 2021

Hi,
I need to get entire row object data when the cell is clicked single time, not on double click event.
Is there any possibility to get that.
 
Regards,
Ravi

9 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster April 29, 2021

Hello, Ravi,
 
If we understand correctly, your requirement is to retrieve Cell Data Object on a cellclick event in the drill-through view. In case our assumption is correct, we want to explain that the `cellclick` event is not triggered in the drill-through view. We suggest using the celldoubleclick event instead.
 
We hope it works for you.
Please contact us if other questions arise.
 
Regards,
Illia

Public
Ravi Kumar May 6, 2021

Hi Illia,
 
I understand your explanation and suggestion for celldoubleevent, but in our case we're enabling a link in the cell, on single cell click of that link we need to perform another functionality.
As you suggested doublecellclick event will not suit our requirement to us and our customers.
Please suggest any other solution.
 
Regards,
Ravi

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 6, 2021

Hello,
 
We have prepared an example that shows how to receive the cell data object after a single click on the cell: https://jsfiddle.net/flexmonster/fo70y8wv/.
 
Please let us know if it works for you.

Regards,
Illia

Public
Ravi Kumar May 6, 2021

Hi Illia,
 
I could not see any output on clicking any cell. 
Kindly look into that, and provide another example.
Our requirement is not just getting cell data object, but require entire row data object with enitre row information.
Please provide any suitable approach.
 
Regards,
Ravi

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 10, 2021

Hello,
 
Could you please provide details about the required information?
How do you retrieve the mentioned "row data object" using the celldoubleclick event? Currently, both celldoubleclick and cellclick events return the Cell Data Object containing information about a clicked cell, not the entire row.
 
Maybe, you are interested in the rowData object that is only returned by celldoubleclick event in the drill-through view?
 
Looking forward to your reply.
 
Regards,
Illia

Public
Ravi Kumar May 17, 2021

Hi Illia,
For both CellDoubleClick and CellClick event, we can retrive CellData object I understand that.
But inside that CellData object contains property "rowData" applicable for only CellDoubleClick event correct?
I need the same functionality to get RowData using CellClick event.
Please provide any alternative solution to achieve RowData with CellClick event.
 
Regards,
Ravi

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 18, 2021

Hello,
 
Please note that the rowData property is only available when using the drill-through feature. This data will not be returned if double-clicking the cell outside the drill-through.
 
We do not have plans to change or complement this functionality.
Also, there is no known workaround for this case.
 
Please contact us if other questions arise.
 
Regards,
Illia

Public
Ravi Kumar May 18, 2021

Hi Illia,
As an workaround i tried by fetching "record-id" and look for same in my datasource and found the respective row data object.
Thanks again for your response.
 
Regards,
Ravi
 

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 18, 2021

Hello,
 
Our team is happy to hear you found a suitable workaround for your case.
 
Feel free to contact us in case other questions arise.

Regards,
Illia

Please login or Register to Submit Answer