Completed
Last Updated: 01 Jul 2021 11:57 by ADMIN
Mathew
Created on: 26 Feb 2016 16:01
Category: UI for ASP.NET MVC
Type: Feature Request
1
Grid: Add column id property
It would be nice to be able to assign a unique ID to each column to go along with the column's title. Makes it easier to find a column by it's ID instead of trying to find it by title. Especially if the user has reordered the columns.
1 comment
ADMIN
Viktor Tachev
Posted on: 01 Jul 2021 11:57

Hi Mathew,

Each column header in the Grid has an uid that can identify a header cell. In addition the data-field attribute can also be used to get reference of a specific column based on the field it is bound to. 

Alternatively you can include a custom CSS class to the columns that can be used to identify them:

columns.Bound(e => e.Title).HtmlAttributes(new { @class = "test" });
The "test" CSS class will e applied to each table cell element in the respective column.

Regards,
Viktor Tachev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.