This is a migrated thread and some comments may be shown as answers.

Unique ID on every row

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 23 Feb 2018, 03:26 AM

Hi, we're not using paging on one of our RadGrids and need to reduce the html output as much as possible. We've noticed that the RadGrid puts a unique ID on every row. Is there anyway to turn this off as it creates a lot of extra code over a few thousand rows.

<tr class="rgRow" id="ctl00_ContentPlaceHolder1_rgDocuments_ctl00__0">

 

Thanks

Daniel

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 26 Feb 2018, 02:54 PM
Hi Daniel,

The client-side logic of RadGrid relies heavily on these IDs and, I am afraid, there is no way do remove them without breaking the control's functionality. As a possible option (instead of reducing the html), you can consider applying the performance improvements suggested here:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/performance/grid-performance-optimizations

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or