Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Satheesh Kumar on Jul 21, 2008 13:18
open dhtmlx forum
Deleting row in the grid

Row is striked out when I am trying to delete a row from the tree grid.Instead i want that row to be completely removed from the grid.I have used the following api to delete a row

deletedResource = mygrid3.getSelectedId();
mygrid3.deleteRow(deletedResource );

Also i tried with the deleteSelectedItem , but still strikes our.I am using 1.5 version of dhtmlx.Please help me on this.
Answer posted by Support on Jul 22, 2008 02:32
When dataprocessor used row will be fully removed only when confirmation from server received.
You can add next line
    deletedResource = mygrid3.getSelectedId();
    mygrid3.deleteRow(deletedResource );
    mygrid3.setRowHidden(deletedResource,true);

In such case row still will be deleted only after confirmation from server, but it will be hidden until that time, so for end user it will look as true deleting.