2011-02-17 56 views
0

在ExtJS的gridfilters,API的狀態:ExtJS的過濾器autorelaod

/** 
    * @cfg {Boolean} autoReload 
    * Defaults to true, reloading the datasource when a filter change happens. 
    * Set this to false to prevent the datastore from being reloaded if there 
    * are changes to the filters. See {@link updateBuffer}. 
    */ 
autoReload : true, 

的問題是:如果你設置autorelaod; flase,商店什麼時候重新加載?據我所見,沒有「前往」按鈕

謝謝。

回答

0

當您明確呼叫yourstore.load()時,該商店將重新加載。您可能不想總是基於一個過濾器重新加載商店被更改。例如,您可能希望等到用戶更改多個過濾器 - 之後用戶將點擊一個按鈕來應用它們。此時您可以明確地撥打yourstore.load()