Currently its possible to set static attributes or CSS classes to kendo grid columns by specifying then in column definition: var columns = [{ field: 'someData', title: 'Some Data', attributes { 'class': 'some-css'} }]; Please add possibility to add custom attributes or CSS Classes dynamically (depending on data row): var columns = [{ field: 'someData', title: 'Some Data', attributes { 'class': function(dataRow){ return dataRow.data > 1 ? 'css-go-up': 'css-go-down' }} }]; Just similar how it works with template for column. Thanks, Val
Hello,
Actually it is possible out to add a style without adding an additional element. Here is a dojo that illustrates this approach.
Regards,
Angel Petrov
Progress Telerik
I agree, this would be amazingly useful! Having to nest a div inside each td in order to apply classes based on data makes me sad.
Would be very helpful. We are porting existing custom conditional styling to kendo and would rather not be creating additional elements inside the table cells just to apply a class