简体   繁体   English

加载comboBox后的Extjs 3.4加载网格

[英]Extjs 3.4 load grid after load comboBox

Using Extjs 3.4. 使用Extjs 3.4。 I have many JsonStore to load many ComboBox . 我有很多JsonStore可以加载很多ComboBox I have an other JsonStore to load the data to populate an EditorGrid. 我还有另一个JsonStore来加载数据以填充EditorGrid。 I want to load the gridStore after all ComboBoxStores have finished the loading process. 我想在所有ComboBoxStores完成加载过程之后加载gridStore Is possible to do this? 可以这样做吗?

Each store emits events such as beforeload , load , that could be used to hookup any additional logic after the store has loaded. 每个存储区都会发出诸如beforeload,load之类的事件,这些事件可用于在存储区加载后连接任何其他逻辑。

I am not sure about you specific use-case but what you could do is , fire a custom event from each of the JSONstores on load( "load" event) and keep track of number of combobox stores loaded. 我不确定您的特定用例,但是您可以做的是,从load的每个JSONstore中触发一个自定义事件(“ load”事件),并跟踪已加载的组合框存储的数量。 Once all stores are loaded you could load the gridStore. 加载所有存储后,您可以加载gridStore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM