Reputation: 2512
How do I make some rows editable and some rows non-editable in slickgrid?
Upvotes: 7
Views: 7813
Reputation: 9082
Set the onBeforeEditCell event handler and return false to prevent the cell from going into edit mode.
Upvotes: 11
Reputation: 1813
Or you can simply designate some columns not to be editable without specifying any editor attribute.
Ex
columns = [
{id:"id",name:"#",field:"id"},
{id:"editable",name:"clicky",field:"editable",editor:Slick.Editors.Text}
];
Depends if you want to loop an auxiliary array and apply if criteria.
Hope it helps
Upvotes: 1