:: Forum >>

multi-row-marker always returns first row

Hi All,

The code below always returns "0" whatever row I click.

Am I doing something wrong?

Thanks for any advice.

obj.setSelectionMode("multi-row-marker");
obj.onSelectedRowsChanged = function(rowIndicesArray){
for (i=0;i<rowIndicesArray.length;i++) {
alert(i)
}
}
Jonathan
Monday, September 29, 2008

obj.setSelectionMode("multi-row-marker");
obj.onSelectedRowsChanged = function(rowIndicesArray){
alert(rowIndicesArray)
}
Monday, September 29, 2008
Ok - I'm an idiot! The code should be this:

obj.setSelectionMode("multi-row-marker");
obj.onSelectedRowsChanged = function(rowIndicesArray){
for (i=0;i<rowIndicesArray.length;i++) {
alert(rowIndicesArray[i])
}
}
Jonathan
Tuesday, September 30, 2008

This topic is archived.


Back to support forum

Forum search