Categories | Question details Back To List | ||
Deleting a row from DHTML xgrid Hello, I'm using dhtmlx grid 2.1 . When I delete a row ,its getting striked out . I want to delete the selected row from the grid . I'm able to delete the record for the same from the database . I tried using myGrid.deleteSelectedItem() and myGrid.deleteRow() methods . Can anybody let me know how to delete the row from the grid.I dont want the deleted row to be striked out . Thanks Shishir Answer posted by Support on Jun 12, 2009 01:48 If you are using grid on its own - row will be fully deleted If you are using grid with dataprocessor - it will be just marked as deleted , and will be removed only after response from server received. To change behavior, you can change logic of dataprocessor by using dp.attachEvent("onRowMark",function(id,state,mode){ if (state == "deleted" && mode == true ){ mygrid.setRowHidden(id,true); return false; } return true; }); |