Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Delete row with XML LoadOnDemand
posted

Hello!

I have the 7.1 webgrid bound to a database and virtual LoadOnDemand. If i scroll down and try to delete a row by the delete-key, a unhandled exception is thrown in the javascript generated by the grid at this position:

 

function igtbl_deleteSelRows(gn)
{
var gs=igtbl_getGridById(gn);
var ar=gs.getActiveRow();

if (ar && ar.IsAddNewRow) return;
var del=false;
if(igtbl_inEditMode(gn))
{
igtbl_hideEdit(gn);
if(igtbl_inEditMode(gn))
return;
}
if(gs.Node)
{
var arOffs=ar?ar.getIndex():0;
gs.isDeletingSelected=true;
var arr=igtbl_sortRowIdsByClctn(gs.SelectedRows);
for(var i=0;i<arr.length;i++)
{
var row=gs.getRowByLevel(arrIdea);
if(row.deleteRow())
{

The row - object at this point is null because there is no row at the position "arrIdea.

This problem only occurs, if i want to delete a row with an index greater than the "UltraWebGrid.DisplayLayout.rowsRange".

Any suggestions? 

Parents Reply Children
No Data