w2ui 网格,带有列表和远程数据源的可编辑字段

w2ui grid, editable field with list and remote data source

我有带列表字段的 W2UI 网格:

{field: 'serial', caption: 'Serial', size: '100px', editable: { type: 'list', items: serials, showAll: true, match: 'contains' }, sortable: true, selected: {id: 1},
    render: function (record, index, col_index) {
         var html = this.getCellValue(index, col_index);
         return html.text || '';
    }
},

而且我想将来自服务器的数据用于此列表单元格。但是如果我尝试使用 'url' 参数,我的列表只会在我输入一些字符(它是一个过滤器)时显示。如果我设置 'items' 参数 - 一切正常,当我点击字段时打开完整列表。有没有一种方法可以通过输入字符在列表字段中使用远程源而不使用过滤器?

如果您使用url参数并且不想过滤结果,您应该设置minLength: 0,这样整个列表将立即显示。