how do i make just some items editable?
for example just the ones that have the id like this id=“attrib131”, id=“attrib44” etc?
You can use onEditCell event
mygrid.attachEvent(“onEditCell”,function(stage,id,ind){
if (id==“attrib131” || id==“attrib44”) return true;
return false;
});
Also grid allows to lock rows ( it can be done directly from XML ) , locked rows can’t be edited
grid.lockRow(id,true);
How to set LockRow in XML? I would like the default to be that all rows are locked, and have control over what rows/cells can be locked programmatically.
You can use row@locked in XML
<row id=‘some’ locked=“true”>…
rows with such attribute will be created in locked state, which can be reset from js code by grid.lockRow(‘some’,false)