[英]Extjs4 Grid is loading 3 times after adding remoteFilter to store
I am using ExtJs 4.2.1 version. 我正在使用ExtJs 4.2.1版本。 My grid is loading 3 times after I adding
remoteFilter
to true
in store
. 在
store
remoteFilter
添加为true
之后,网格加载了3次。
Ext.define('PM.store.Orgs', {
extend: 'Ext.data.Store',
model: 'PM.model.org',
autoLoad: false,
remoteFilter: true,
sorters: ['orgId'],
proxy: {
type: 'ajax',
api: { read: 'api/org/findByOrgId' },
reader: { type: 'json' }
}
});
After adding remoteFilter:true
, it was loading 3 times. 添加
remoteFilter:true
,它正在加载3次。
Without making any changes to my code ,now it is loading only once.Seems very weird behaviour. 在不对我的代码进行任何更改的情况下,现在它仅加载一次。似乎很奇怪。 Actually I wanted to apply remote filter feature to grid.However I was able to do it by making local flag to false in grid and without adding remote Filter flag to store.
实际上我想将远程过滤器功能应用于网格,但是我能够通过在网格中将本地标志设置为false而不添加远程过滤器标志来进行存储。 Thank you
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.