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

[Solved] assigning class/id selectors to the dynamically created tr/td

3 Answers 1045 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Khara
Top achievements
Rank 1
Khara asked on 03 Nov 2011, 07:22 PM
i am using binding to local data of Grid widgets. i need to add functionality for click event in table cell like open a pop-up window on clicking the cell. so I like to assign class or id to dynamically created table rows and columns. How to i do this?
Thanks - Khara

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Nov 2011, 08:56 AM
Hello Khara,

You can use a row template or the dataBound event to modify table row (cell) attributes.

http://demos.telerik.com/kendo-ui/grid/rowtemplate

http://demos.telerik.com/kendo-ui/grid/events

When using the event, you will have to iterate through the rows and add attributes to the appropriate cells. I suppose a row template will be a more convenient approach.

Best wishes,
Dimo
the Telerik team
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kelso
Top achievements
Rank 1
answered on 21 Jan 2015, 03:23 PM
These links no longer work
0
Dimo
Telerik team
answered on 23 Jan 2015, 11:36 AM
FIxed, thanks.
Tags
Grid
Asked by
Khara
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Kelso
Top achievements
Rank 1
Share this question
or