I tried to use the following to set a cell editable at runtime but not successful. could anyone help?
var $editor = $("#grid1").igGridUpdating("editorForKey", columnKey);
$editor.igEditor("option", "readOnly", true);
Thanks
Hello Andy,
Have you been able to resolve the issue? If you need more assistance, please let us know.
Sincerely,
Tsanna
Hello aschoi,
If you're using combo editor then you should use igCombo API.
Here is an example how to set the igCombo to readonly for the CategoryID column:
function disableComboEditor() {
var editor = $("#gridProducts").igGridUpdating("editorForKey", "CategoryID");
editor.igCombo("option", "mode", "readonly");
}
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Alex,
1.The editor is Combo type.
2. No, the cell is not initialized to readonly. The scenario is that I would like to set the cell to be non-editable and there is another boolean cell next to it. When user check the box, it will enable the cell to be editable.
Can you specify what kind of editor you use in this column?
Also is this editor/cell initialized as read only and do you want this cell/editor to be editable or not?
Setting “readOnly” editor option to true normally means that the editor will not be editable.
I am waiting for your response.