:: Forum >> Version 2 >>

how to delete a first row

More information on this topic is available in the documentation section: /aw.ui.grid/deleterow.html.

if i have got 4 rows, i cannot delete thr first row using deleterow(rowindex),but i delete other rows . pls help me
rafi
Wednesday, April 23, 2008
If you are trying to delete the row selected 'highlighted', then try replacing:
// get the last row index
var i = obj.getRowCount() - 1;
with:
// get the last selected row
var s = obj.getSelectedRows();

But it need more REWORK on check-row-selection and fails on multiple selected rows.
There is good sample for that :
/javascript.forum.12869.5/hide-show-rows-issue.html
Or you can also search for 'deleterow' in the forum to get more samples.
HTH
Carlos
Wednesday, April 23, 2008



This topic is archived.

Back to /aw.ui.grid/deleterow.html

Documentation:

Forum search