SMART datagrid v.1 > Classes > GridBase
当SearchCellEditor请求填充列表框的项目时,将会触发这个事件。
在这个事件处理器中,将会通过调用fillEditSearchItems,传递项目。
var _names = ['aaa', 'bbb', ....];
grid.onEditSearch = function (grid, index, text) {
var items = _names.filter(function(str) {
return str.indexOf(text) == 0;
});
grid.fillEditSearchItems(index.column, text, items);
};