这个问题可能是由于没有正确设置下拉框选项导致的。下面是一些可能的解决方案:
{ id: 'column_id' name: 'Column Name', field: 'column_name', editor: { model: Editors.select, collection: [{ id: 1, name: 'Option 1'}, ...], options: { maxHeight: 400, itemTextProperty: 'name', // add this line itemValueProperty: 'id' // add this line } } }
{ id: 'column_id' name: 'Column Name', field: 'column_name', editor: { model: Editors.select, asyncPostRenderDelay: 250, collectionAsync: this.http.get('api/endpoint').pipe(map(res => res)), // returns Observable collectionOptions: { maxHeight: 400 }, customStructure: { value: 'id', label: 'name' } } }
使用这些选项中的一个可能会解决下拉单选或多选框在第一次点击时闪烁的问题。