Posted 15 May 2018, 3:07 am EST
What is the wrong in the following codes:
function deleteAllRows(wijmoGridObject)
{
if (wijmoGridObject == null)
return;
for (var i = 0; i< wijmoGridObject.rows.length - 1; i++) {
wijmoGridObject.rows.remove(wijmoGridObject.rows[i]);
}
}
Or
function deleteAllRows(wijmoGridObject)
{
if (wijmoGridObject == null)
return;
wijmoGridview = wijmoGridObject.collectionView;
for (var i = 0; i< wijmoGridview.items.length - 1; i++){
wijmoGridview.remove(wijmoGridview.items[i]);
}
}
My target is to impalement a function to delete all rows, but when i used any of these 2 functions , the result is delete some of rows not all rows >>for example if i have grid with 5 rows and call any of these 2 functions it delete only 2 or 3 rows only !!