setSelectionIndex and key navigation problem
Hello,
I have just downloaded the latest version (0.2.4) and I found a problem when setSelectionIndex is called.
I added the following line in 'two grids on one page.htm' :
obj1.setSelectionIndex(10);
This is the code:
<script>
var obj1 = new Active.Controls.Grid;
obj1.setId("grid1");
obj1.setRowCount(15);
obj1.setColumnCount(5);
obj1.setDataText(function(i, j){return data1[i][j]});
obj1.setColumnText(function(i){return columns1[i]});
obj1.setSelectionIndex(10);
document.write(obj1);
</script>
The autoscroll to the 11th row doesn't seem to work (obj1.setSelectionIndex) but it affects the key navigation as well - just select the first row and then press the down arrow key several times to see what happens.
Any ideea about how to fix it?
Regards,
Vasile
I have just downloaded the latest version (0.2.4) and I found a problem when setSelectionIndex is called.
I added the following line in 'two grids on one page.htm' :
obj1.setSelectionIndex(10);
This is the code:
<script>
var obj1 = new Active.Controls.Grid;
obj1.setId("grid1");
obj1.setRowCount(15);
obj1.setColumnCount(5);
obj1.setDataText(function(i, j){return data1[i][j]});
obj1.setColumnText(function(i){return columns1[i]});
obj1.setSelectionIndex(10);
document.write(obj1);
</script>
The autoscroll to the 11th row doesn't seem to work (obj1.setSelectionIndex) but it affects the key navigation as well - just select the first row and then press the down arrow key several times to see what happens.
Any ideea about how to fix it?
Regards,
Vasile
January 16,