SMART datagrid v.1 > Classes > GridBase
SearchCellEditor calls this method within onEditSearch event handler which requests the items to be filled in list box to fill the items of editor list.
var names = [
"a001", "a002", "a003", "b004", "b005", "c006", "c007", "c008",
"d009", "d010", "e011", "e012", "e013", "f014", "f015", "g016", "g017"
];
grid.onEditSearch = function (grid, index, text) {
var items = names.filter(function(str) {
return str.indexOf(text) == 0;
});
grid.fillEditSearchItems(index.column, text, items);
};