editCellStarting: function(evt, ui){
editCellStarting:
function
(evt, ui){
ui.editor.igEditor('option', 'readOnly', true); ui.editor.igEditor("option", "spinOnReadOnly", true);
ui.editor.igEditor('option', 'readOnly', true);
ui.editor.igEditor("option", "spinOnReadOnly", true);
igEditor(
"option"
,
"spinOnReadOnly"
true
);
}
I set the the edit cell with readOnly , but cann't work? It still can edit. How can I set some table cell cann't
editable that I want.
What is missing that I setted?
Thanks.
Hello Benny,
You can find my answer here: http://es.infragistics.com/community/forums/t/83866.aspx
Best regards,Martin PavlovInfragistics, Inc.
I tried this. It works but has a serious side effect that, the Done button is not getting enabled even after finished editing another cell in that row. It happens 80% of times
Thank you very much.
Hello dlkts,
editCellStarting is cancelable event, so if you want to make the cell read only then you should cancel the event by returning false in the function. Here is the example:
editCellStarting: function (evt, ui) {
// Test for condition on which to cancel cell editing
// Here I use columnIndex property. This will disable from editing the first column in the grid.
if (ui.columnIndex === 0)
// cancel the editing
return false;
You can also check which row is edited like this:
if (ui.rowID === 0)
{
We have bunch of properties you can use in editCellStarting event ot fit your needs. Please check our online documentation for details:
http://help.infragistics.com/jQuery/2011.2/ui.iggridupdating#!events
Hope this helps,
Martin Pavlov
Infragistics