Persisted Grid State Condition

2 posts, 0 answers
  1. Michael
    Michael avatar
    36 posts
    Member since:
    Sep 2014

    Posted 23 Oct 2017 Link to this post

    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?




  2. Stefan
    Stefan avatar
    2583 posts

    Posted 25 Oct 2017 Link to this post

    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:

    I hope this is helpful.

    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.
Back to Top