开发者

extjs filter autorelaod

开发者 https://www.devze.com 2023-02-11 11:46 出处:网络
In extjs gridfilters, the api states: /** * @cfg {Boolean} autoReload * Defaults to true, reloading the datasource when a filter ch开发者_高级运维ange happens.

In extjs gridfilters, the api states:

/**
     * @cfg {Boolean} autoReload
     * Defaults to true, reloading the datasource when a filter ch开发者_高级运维ange happens.
     * Set this to false to prevent the datastore from being reloaded if there
     * are changes to the filters.  See {@link updateBuffer}.
     */
autoReload : true,

The question is: if you set autorelaod; flase, when is the store going to reload? There is no 'Go' button as far as i can see

Thank you.


The store will reload when you explicitly call yourstore.load(). You may not want to always reload a store based on one filter is changed. For instance, you may want to wait until a user changes many filters -- after which the user will click a button to apply them. At this point you would call yourstore.load() explicitly.

0

精彩评论

暂无评论...
验证码 换一张
取 消