3.2.0

obj.setSelectedRows(0)

At the beginning I want to select the first row.
After writing i add

obj.setSelectedRows(0).

The result is:
OK selection is good

But I don't see the first row. The scrolling bar is bad positionned.

I've just bought the product

Any idea to fix that bug?
thierry
January 26,
Yes, this is the bug in AW 2.0.1 - the grid scrolls up when you call setSelectedRows() method. You can correct it with setScrollTop() call -

obj.setSelectionMode("single-row");
obj.setSelectedRows([0]); // array of row indices
obj.setScrollTop(0);


It will be fixed in the next release.
Alex (ActiveWidgets)
January 26,
OK. it works

But another problem with setSelectedRows() method.
If i choose another indice than 0, I can not navigate with keys anymore.

obj.setSelectedRows([10]);
obj.setScrollTop(100);

Selection is good (10th row) and scrolling too
but if I press key (arrow previous) i did not get the 9th row but the first one

Thanks for your advise
thierry
January 26,
You should also add -

obj.setCurrentRow(10);

This comes from the need to support multiple selections, where the current row might be different from the selected row(s).
Alex (ActiveWidgets)
January 26,
Thanks for your help. It's OK

When the next release?
thierry
January 26,

This topic is archived.

See also:


Back to support forum