Problem width remove row
Hi
Alex, compliments for your code ;-)
I have a little problem for remove row when user use sort in Grid.
This code run if user don't use sort:
function remove(robj,rdata) {
var i=0;
var j=0;
var nrow=robj.getRowCount(); //num rows
var srow=robj.getSelectionIndex(); //row selected
if (srow>=0 && srow < nrow ) {
for (i=0;i<nrow;i++)
{
if (i==srow) j++;
if (j!=0) rdata[i]=rdata[i+j];
}
robj.setRowCount(nrow-1);
//robj.setDataText(function(i, j){return rdata[i][j]});
robj.refresh();
}
}
Thare is another possibility for remove object ?
thank you in advenced
Alex, compliments for your code ;-)
I have a little problem for remove row when user use sort in Grid.
This code run if user don't use sort:
function remove(robj,rdata) {
var i=0;
var j=0;
var nrow=robj.getRowCount(); //num rows
var srow=robj.getSelectionIndex(); //row selected
if (srow>=0 && srow < nrow ) {
for (i=0;i<nrow;i++)
{
if (i==srow) j++;
if (j!=0) rdata[i]=rdata[i+j];
}
robj.setRowCount(nrow-1);
//robj.setDataText(function(i, j){return rdata[i][j]});
robj.refresh();
}
}
Thare is another possibility for remove object ?
thank you in advenced
br1
February 2,