:: Forum >>

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
Friday, January 16, 2004
Yes, still lots of bugs here. What I 've noticed so far:

1. autoscroll works only if you call setSelectionIndex after the grid is written to the page.

2. key event is not cancelled, so the page itself may scroll

3. grid is not accessible with tab navigation

I'll try to fix all of this asap.

Anything else I've missed?
Alex (ActiveWidgets)
Saturday, January 17, 2004
Alex,

Have those items been fixed yet?

Michael
Mobasoft
Thursday, January 27, 2005

This topic is archived.


Back to support forum

Forum search