Extjs4 Grid加载3次后添加remoteFilter存储

Extjs4 Grid is loading 3 times after adding remoteFilter to store

本文关键字:添加 remoteFilter 存储 3次 Grid 加载 Extjs4      更新时间:2023-09-26

我使用的是ExtJs 4.2.1版本。我的网格加载3次后,我添加remoteFiltertruestore

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' }
    }
}); 

添加remoteFilter:true后,加载3次

无需对我的代码进行任何更改,现在它只加载一次。看起来很奇怪的行为。实际上,我想在网格上应用远程过滤功能。然而,我能够通过在网格中将本地标志设置为false而不添加远程过滤器标志来存储来做到这一点。谢谢你