SMART datagrid v.1 > Classes > DataColumn
Callback function which returns whether to display the editor when preparing data cell editor.
If explicitly return Boolean false, the editor will not be displayed.
Defaults to null.
column.setEditableCallback(function (index) {
if (grid.getValueAt(index.rowIndex, 'qty') > 10000) {
return false;
}
});
var columns = [{
name: 'colRate',
editableCallback: function (index) {
if (grid.getValueAt(index.rowIndex, 'qty') > 10000) {
return false;
}
}
},
...
];
grid.setColumns(columns);