I want to make a row field readOnly after the row of the grid was created. I want to make it work both in editMode 'row' and 'rowedittemplate'. How can I do this?
Asked
Active
Viewed 1,702 times
1 Answers
1
You need to configure the column settings in the updating feature and set readOnly to true for the updating of the column you want to be non-editable:
$(element).igGrid({
features: [
{
name: "Updating",
columnSettings: [
{ columnKey: "Key", readOnly: true }
]
}
]
});

Konstantin Dinev
- 34,219
- 14
- 75
- 100
-
Thanks. Now I see that I did not understand the column settings api right. I thought that igGrid.columnSettings is the only way and the others in the separate features are just redundant ways to do it. – Ognyan Dimitrov Sep 29 '14 at 13:06
-
@OgnyanDimitrov Hey :) The columnSettings are specific for each feature, so yes they are not redundant! – Konstantin Dinev Sep 29 '14 at 13:11