Ext JS:queryMode:键入后的“远程”数据过滤器不适用于大型数据集,正在刷新

问题描述

我试图在组合框中显示数据库中的巨大数据集。但是,每当我在组合中键入任何内容时,数据过滤器都将无法工作。我已经尝试过从堆栈溢出中所有可能的解决方案来解决类似问题,但是仍然是相同的。你能帮忙吗?以下是我正在使用的商店和组合框详细信息。数据集巨大,可用于多页。

也:如果我使查询模式:'本地'和pageSize:9999筛选器工作。但这不是我要的,我需要的是页面,而不是一页一页。

Ext.onReady(function() {
var applicationStore = 
        Ext.create
        (
          'Ext.data.Store',{
            storeId: 'APPLICATION_STORE',fields: 
            [
              {
                name: 'u_sruname',mapping: 'u_sruname',type: 'string'
              },{
                name: 'u_sruid',mapping: 'u_sruid',{
                name: 'u_sru_shortname',mapping: 'u_sru_shortname',{
                name: 'u_ztp_last_seq',mapping: 'u_ztp_last_seq',type: 'string'
              }
              
            ],autoLoad: true,proxy: 
            {
              type: 'ajax',url: '/api/test1',extraParams: 
              {
                type: 'table',usesql: true,sqlQuery: 'select distinct(u_sruname),u_sruid,u_status,u_sru_shortname,u_ztp_last_seq from ZTP_SRU order by u_sruname ASC'
              },reader: 
              {
                type: 'json',root: 'records'
              }
            },}
        );
    
 
    var applicationCombo = 
        Ext.create
        (
          'Ext.form.ComboBox',{
            id: 'APPLICATION_COMBO',fieldLabel: 'Service Recovery Unit Name',labelWidth: 200,margin: '10 20 10 5',valueField: 'u_sruid',displayField: 'u_sruname',store: applicationStore,queryMode: 'remote',minChars: 1,allowBlank : false,hideTrigger:false,mode: 'local',listeners: {
                           select: function(field,record)
                           {}
            }


          }
        );

the data is the same as when first loaded

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)