Grid Unique Column

Dear Team,

We want unique row_id for grid row.  Which should be not change when we use sorting and scrolling of virtualization grid.


3 Replies

RR Rajapandi Ravi Syncfusion Team September 5, 2022 12:56 PM UTC

Hi Nagendra,


Greetings from Syncfusion support


From your query we could see that you want to maintain the unique id for the Grid column. You can maintain a unique id for the column which was defined in the datasource. In your query you have mentioned that “Which should be not change when we use sorting and scrolling of virtualization grid”, we need more information for our clarification.


Before we start providing solution to your query, we need more information for our clarification. Please share the below details that will be helpful for us to provide better solution.


1)          Please share your exact requirement scenario with detailed description.


2)          Explain your requirement scenario with pictorial representation or video demonstration.


3)          Please confirm your requirement is like to use the Freeze the column. Please refer the below sample demos for more information.


              Sample Demos: https://ej2.syncfusion.com/angular/demos/#/material/grid/frozen-rows


Regards,

Rajapandi R



NG Nagendra Gupta September 6, 2022 05:23 AM UTC

Hey Rajapandi,


Thanks for your prompt response, I just want a unique row id/ index which should not depended on json data provided in datasource property. Respective row index related to entire data not scoped within current view data.


Eg: If I want to update any row/ column to specific row level

Provided Row Index should not be changed in case of sorting, filtering of data

Row Index must be created at the time of databound or grid create.


Regards,

Nagendra



AR Anbumani Rajendracholan Syncfusion Team September 9, 2022 04:40 PM UTC

Hi Nagendra Gupta,


Thanks for your update.


Query: Grid Unique Column


Based on your update, we want to convey that it is not possible to change the aria-rowindex attribute since it will break our Grid default flow. However, We suggest you the “rowDataBound” event which will be triggered for each row rendering. Using this row elements, you can be able to set the custom attribute to the row. Please refer to the below documentation link for more information.


https://ej2.syncfusion.com/angular/documentation/grid/row/row/#using-event


Please get back to us if you need further assistance.


Regards,

Anbumani Rajendracholan.


Loader.
Up arrow icon