SMART datagrid v.1 > Classes > EditOptions
Callback function which returns the read-only state of editor when prepare the data cell editor.
If explicitly return Boolean true, you will not be able to update the value of editor.
Defaults to null.
grid.editOptions().setReadOnlyCallback(function (index) {
if (index.grid().getValueAt(index.rowIndex, 'qty') > 10000) {
return true;
}
});
grid.setEditOptions() {
readOnlyCallback: function (index) {
if (index.grid().getValueAt(index.rowIndex, 'qty') > 10000) {
return false;
}
}
};