GridPanel Filter Preservation after Reload

  1. #1

    GridPanel Filter Preservation after Reload

    Hi,

    I searched the forums extensively before asking this question, so if it's already been addressed, please direct me to that page.

    Basically, I have a GridPanel which I'm refreshing every X seconds. After the refresh I want to preserve the entire grid's state (from columns to filters).
    Now, I found out the way to deal with the grid's state regarding columns, sorting etc. However, the filtering is only preserved on initial load. After I do either a DataStore.reload() or GridPanel.reload(), the filtering state goes away (even though the column still shows as filtered).

    I know it must be something very simple but I tried many things, including trying to set the DataStore.filterBy(GridPanel.getFilterPlugin().get RecordFilter()); to no avail.

    Any and all help will be greatly appreciated.



    Thanks,
    Eben
  2. #2

    CLOSED

    I don't know if there is an easier way but I just ended up hooking up to the "Load" Store listener and called the following:
    DataStore.filterBy(GridPanel.getFilterPlugin().get RecordFilter());


    If I'm doing too much work or if there is an easier way, feedback is still welcomed!



    Thanks,
    Eben

Similar Threads

  1. Replies: 2
    Last Post: May 01, 2012, 4:57 PM
  2. Gridpanel reload in every 5 mins
    By shijith in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2010, 8:32 AM
  3. About GridPanel.reload
    By helpme in forum 1.x Help
    Replies: 0
    Last Post: Mar 24, 2010, 12:52 AM
  4. Replies: 4
    Last Post: Jun 15, 2009, 10:45 AM
  5. How to reload a gridpanel without notification?
    By mcdonald in forum 1.x Help
    Replies: 2
    Last Post: May 13, 2009, 10:57 AM

Posting Permissions