Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kamaraju on Oct 14, 2009 00:00
open dhtmlx forum
Locked rows

hi,
I have locked few rows .If i call mygrid.deleteRow() it must not delete the locked rows how to handle it .
Answer posted by Stanislav (support) on Oct 14, 2009 04:03
mygrid.attachEvent("onBeforeRowDeleted",function(id){ 
           if (this.getRowById(id)._locked) return false; //block deleting
           return true;
});