how can i render in grid on first time load , the whole row as readonly?
right now I pasted same callback function for each column in row to make entire row readonly. Is there more cleaner and efficient way to do this?
e.g.
{
title: "Definition",
editor: { type: 'textarea', attr: 'rows=5' },
width: 350,
dataIndx: "Definition",
filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] },
editable: function (ui) {
if (ui.rowData['IsBaseEvent'] === true) {
return false;
} else {
return true;
}
}
},
{
title: "Notes",
editor: { type: 'textarea', attr: 'rows=5' },
width: 350,
dataIndx: "Notes",
filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] },
editable: function (ui) {
if (ui.rowData['IsBaseEvent'] === true) {
return false;
} else {
return true;
}
}
}