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

Filtering causes rows to lose styling

2 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 20 Jul 2012, 08:29 PM
I've been working with the Kendo grids for a while and have begun to figure out what I can and can't do with them however this was a behavior that surprised me. So I essentially have a grid that I am updating with a different style after a trigger occurs. If the user tries to filter the datasource of that grid, any individual row styling is lost. Is this the expected behavior?

I would really like to keep my styling but obviously I'm not sure if there's an approach that will do this. It must be that filtering reconstructs the entire grid such that any styling information is lost. Is there any way to work around this easily?

2 Answers, 1 is accepted

Sort by
0
Derrick
Top achievements
Rank 1
answered on 18 Mar 2013, 05:06 PM
Has anyone found a way around this yet? We are having the same issue. 
0
Iliana Dyankova
Telerik team
answered on 21 Mar 2013, 11:28 AM
Hello guys,

I am not quite sure how you are styling the rows in your Grids (and why such a styling disappears), however in order to preserve the styling you can use both rowTemplate (with JavaScript code inside this template to check some conditions) or custom CSS. For your convenience I prepared a simple jsBin example which demonstrates the suggested approaches in action. 

Regards,
Iliana Nikolova
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
Brian
Top achievements
Rank 1
Answers by
Derrick
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or