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

Feature Request: column.attributes.class should handle function (similar to column.template)

3 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Valentyn
Top achievements
Rank 1
Valentyn asked on 14 Mar 2014, 03:42 PM
Hello Guys,

KendoUI is great :)
But some pretty simple features are missed:

We have no possibility to set up custom CSS classes for table cells.
Please not offer to use RowTemplate instead :) we need it on cell level only and don't want to think how rest of row's HTML should look like

Currently possible to define column style like this (sets 'some-css' class to table cell):
var columns = [{ field: 'someData', title: 'Some Data', attributes { 'class': 'some-css'} }];

it would be really nice to have something like this (set css classes depending on dataRow):
var columns = [{ field: 'someData', title: 'Some Data', attributes { 'class': function(dataRow){ return row.data > 1 ? 'css-go-up': 'css-go-down' }} }];

Thanks,
Val

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Mar 2014, 10:02 AM
Hello Valentyn,

Thank you very much for your input.

I would suggest you to check our uservoice section and post it there, and if it gains popularity it will be considered for a future implementation.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Valentyn
Top achievements
Rank 1
answered on 17 Mar 2014, 10:59 AM
Ok, this request was posted here:

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/5643993-make-kendo-grid-cells-customizable
0
Kiril Nikolov
Telerik team
answered on 17 Mar 2014, 11:06 AM
Hi Valentyn,

Thank you very much for this!

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