0

I have W2UI grid with list field:

{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 || '';
    }
},

And I want to use data from server for this list cells. But if I tried use 'url' parametr my list is shown only when i typed some charatcer (it's a filter). And if I set 'items' parameter - everething fine, full list open when I clicked on field. Is there a way to use remote source with list field and without filter by typing characters?

4

1 回答 1

0

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

于 2015-10-08T16:34:00.583 回答