Prevent grid reload on filter update/activate event

  1. #1

    Prevent grid reload on filter update/activate event

    Hi everyone,

    Is there a way to prevent a grid store from reloading on filter activate and update events? The idea behind that is to reduce the number of requests to the server. Ideally user should be able to configure filters in the grid, press 'Apply' button and only then store should be reloaded.

    I'd appreciate if anyone has an idea how to implement that.

    Thanks,
    Alexander
  2. #2
    i think you must set RemoteFilter(false) for your store ?
  3. #3
    Quote Originally Posted by othmanee View Post
    i think you must set RemoteFilter(false) for your store ?
    This will filter the data locally and the grid will be updated anyway. What I need is to prevent any changes in the grid when filter value is changed untill user presses 'Apply' button (custom button outside the grid).
  4. #4
    Hi @alexanderius,

    I think it is possible. Returning false from a Store's beforeload listener stops a load request. You can use that.

Similar Threads

  1. Prevent GridPanel reload on resize
    By icetronics in forum 2.x Help
    Replies: 3
    Last Post: Apr 09, 2014, 10:18 PM
  2. [CLOSED] Grid filter plugin reload on user key enter press
    By retailItalia in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 12, 2013, 12:36 PM
  3. Replies: 0
    Last Post: May 31, 2013, 8:06 AM
  4. [CLOSED] Update grid cell value without store.reload()
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 02, 2011, 3:54 PM
  5. [CLOSED] Get Grid Height on client after direct event reload
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 20, 2011, 7:04 PM

Tags for this Thread

Posting Permissions