开发者

extjs beforestaterestore in gridfilters

In extjs, gridFilters, we h开发者_运维问答ave:

grid.on({
scope: this,
beforestaterestore: this.applyState,

I am unable to understand what exactly is the beforestaterestore doing?


The beforestaterestore event is fired before a Grid is loaded, assuming that the stateful config option was used when creating the Grid.

The code that you've listed will call the Grid's applyState method when this event fires, which will copy properties from the state provider to the Grid object.

I would strongly advise taking a look at the ExtJS Documentation for the Grid Panel for more information.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜