How do I make some rows editable and some rows non-editable in slickgrid?
Set the onBeforeEditCell event handler and return false to prevent the cell from going into edit mode.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With