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

Grid eliminating attributes of td's

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 08 Dec 2011, 05:32 PM
We were really hoping for a complete solution when we purchased Kendo.  For interactive tables, we currently use datatables.  It seems as if the way the Kendoui grid is implemented, it eliminates attributes of the table cells.  For instance when this code is viewed in firebug:
 '<tr><td id="prod1234Name" class="red">bananas</td></tr>'
firebug shows that all attributes were gone:
 '<tr><td>bananas</td></tr>'

Because our application acts upon various cell via the elements attributes, this is a non-starter for us. 

We then thought maybe we could 'Jimmy-It' by wrapping the content in a span:
 '<tr><td><span id="prod1234Name" class="red">bananas</span></td></tr>'
That failed as well and rendered the span on the page as text.

Why would being able to add attributes to the cells in a table break the GRID?



1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Dec 2011, 10:29 AM
Hello Benjamin,

Indeed, this is a current limitation in the Kendo Grid that we will consider resolving in the future. In the meantime, you can use a row template and have custom HTML attributes preserved during data binding:

http://demos.kendoui.com/web/grid/rowtemplate.html

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or