gridfilters中的extjs beforestaterestore

gridfilters中的extjs beforestaterestore,extjs,Extjs,在extjs、gridFilters中,我们有: grid.on({ scope: this, beforestaterestore: this.applyState, 我无法理解beforestaterestore到底在做什么 假设在创建网格时使用了statefulconfig选项,则在加载网格之前会触发beforestaterestore事件 您列出的代码将在触发此事件时调用网格的applyState方法,该方法将属性从状态提供程序复制到网格对象 我强烈建议您查看一下,以获取更多信息。+1

在extjs、gridFilters中,我们有:

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

我无法理解beforestaterestore到底在做什么

假设在创建网格时使用了
stateful
config选项,则在加载网格之前会触发
beforestaterestore
事件

您列出的代码将在触发此事件时调用网格的
applyState
方法,该方法将属性从状态提供程序复制到网格对象


我强烈建议您查看一下,以获取更多信息。

+1获取API链接-这应该是每个人遇到ExtJs问题的第一个调用端口。