Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anuj on Jul 25, 2008 00:45
open dhtmlx forum
Delete Last row from dhtml grid

I want to delete last row from grid.

When I Click on button only last row removed from grid.

I want to use function

mygrid.deleteRow(mygrid.getRowId(mygrid.rowsCol.length-1),mygrid.row);


Answer posted by Support on Jul 25, 2008 02:14
The more simple|stable approach will be

    mygrid.deleteRow(mygrid.getRowId(mygrid.getRowsNum()-1));