Categories | Question details Back To List | ||
how do i make just some items editable? how do i make just some items editable? for example just the ones that have the id like this id="attrib131", id="attrib44" etc? Answer posted by Support on Apr 18, 2008 07:44 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); Answer posted by Tom Ince on Jun 16, 2008 09:57 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. Answer posted by Support on Jun 17, 2008 04:02 You can use row@locked in XML <row id='some' locked="true"><cell>.... rows with such attribute will be created in locked state, which can be reset from js code by grid.lockRow('some',false) |