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

Event Sorting/Filtering?

2 Answers 161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 06 May 2015, 07:13 PM

We're using the grid with remote data and inline editing.  When we read/update data on the transports we have a complete function which then goes through and highlights specifics cells.  An example of what we send back: https://gist.github.com/anonymous/b1e52666df38a47d0650

 

We then go through the grid highlighting the specific cells based on the previouslyChangedFields like this: https://gist.github.com/anonymous/49b471c9638766e2a448

 

The problem is that when the user sorts or filters the grid, our "success" class disappears as it is redrawn.   Is there any way to listen for a sorting/filtering event?  The dataSource change event is fired before the grid is redrawn so we can't use that.  

 

Thanks,

Matt

2 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 06 May 2015, 07:15 PM
By the way, if there was a way to do cell specific attributes (ie add a class to a specific cell) based on the data that would also be a good fix.  However, looking around the posts said that wasn't supported and that you had to do it by listening to events.
0
Boyan Dimitrov
Telerik team
answered on 07 May 2015, 04:04 PM

Hello Matt,

I am afraid that there is no specific events for sorting/filtering. You can use our User Voice to post your suggestions and considerations. This is section is reviewed regularly and if your suggestion gets popular we will definitely consider implementing it.

A possible solution would be using the grid dataBound event handler and check if there is sort/filter set for the grid data source. 

Regards,
Boyan Dimitrov
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
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or