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

Persisted Grid State Condition

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 23 Oct 2017, 01:39 PM

So I'm following the examples I've seen which allow me to persist the state of my grid between sessions.  i.e. if the user adds a filter, adds or removes a column from being visible, etc...  What I'd like to do is give the user a visual cue to let them know they are looking at an "altered" grid.  I.e. if they apply a filter to the grid,  leave the application, come back at a later date and don't realize the filter is still active or they are missing a column, or whatever, I would like to put a thin red border around the div containing the grid.  The problem is, I don't see a simple way to see if the grid is in "normal" (as the developer created it) or "altered" (the user has made front end modifications).  Is there something I could check to determine this?

 

Thanks,

Mike

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Oct 2017, 08:16 AM
Hello, Mike,

If the standard case assumes that the Grid has no filter, sorting or paging applied. I can suggest on the event that will set the options to check if some of these options are still empty and if they are to apply the style.

I made an example demonstrating this:

http://dojo.telerik.com/Ejevu

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or