SMART datagrid v.1 > Classes > EditOptions
Callback function which returns whether to display the editor when prepare data cell editor.
If explicitly return Boolean false, the editor will not be displayed.
Defaults to null.
grid.editOptions().setEditableCallback(function (index) {
if (index.grid().getValueAt(index.rowIndex, 'qty') > 10000) {
return false;
}
});
grid.setEditOptions({
editableCallback: function (ndex) {
if (index.grid().getValueAt(index.rowIndex, 'qty') > 10000) {
return false;
}
}
});