Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Velmurugant on Sep 07, 2009 02:11
open dhtmlx forum
How to delete instead of strike thru from grid using data processor?

I want to delete the entire row instead of strike thru, how to do that. I am trying using below line of code. But i still strike thru the line. Any idea?

dp.attachEvent("onRowMark",function(id,state,mode){
if (state == "deleted" && mode == true ){
mygrid.setRowHidden(id,true);
return false;
}
return true;
});


Thanks,
Vel
Answer posted by dhxSupport on Sep 07, 2009 07:05
There is no possibility to do that. Row deleted from the grid only after it was successfully deleted in the server side.
Answer posted by Support on Sep 07, 2009 08:48
But you can use onRowMark event to hide row until of striking-through. Row will be fully deleted only after server confirmation, but it visually disappear right after deleting.