Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 02, 2007 16:06
open dhtmlx forum
How to perform a delete of Selected rows after selecting multiple rows using mygrid.enableBlockSelection();

Hi

I need to delete Multiple rows after selecting rows using mygrid.enableBlockSelection(); command. Im able to copy and paste but unable to delete. Can anybody let me know how to delete all the items that were selected
thanks in Advance
Answer posted on Jul 05, 2007 10:34
You can't just delete separate cells, the grid is row-centric, so only full rows can be deleted.

If you want to delete rows included in selection, you can use code similar to next

var top      = grid._selectionArea.LeftTopRow;
var bottom = grid._selectionArea.RightBottomRow;

for (var i=bottom; i<=top; i--)
     grid.deleteRow(grid.getRowId(i));

Answer posted by Nadine (Support) on Dec 08, 2014 22:56

The information connected with asp.net reservation system and mobile framework also can help you, so please check it too.