ranendra
ranendra

Reputation: 2512

editable and non-editable rows in slickgrid

How do I make some rows editable and some rows non-editable in slickgrid?

Upvotes: 7

Views: 7813

Answers (2)

Tin
Tin

Reputation: 9082

Set the onBeforeEditCell event handler and return false to prevent the cell from going into edit mode.

Upvotes: 11

cristi _b
cristi _b

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

Related Questions