3.0.5

scrollIntoView in version 2.0

When trying to use the scrollIntoView function previously mentioned on these forums I found it doesn't work with version 2.0.

I am using the AW.UI.Grid, and when I try to do the following, it does not work
var data = this.getTemplate("layout").getContent("data");

I believe the API has changed?

What I am trying to do is to make the selected row be displayed in the viewable part of the table after sorting. This is what I believe scrollIntoView is used for? Right?
Raf
December 1,
try:

obj.setCurrentRow(34);


This should set the grid so that row 34 is now at the top of the grid.
Jim Hunter
December 2,
Thanks, how obvious!

But interesting that a call to getCurrentRow() doesn't tell you the first selected row, it returns the currently selected row. A bit of a disconnect between getCurrentRow() and setCurrentRow().

ie. If I call obj.setCurrentRow(obj.getCurrentRow());
It changes the state of the table to do what I want (great for me). however, I would have expected no change to the table from that call.
Raf
December 4,

This topic is archived.

See also:


Back to support forum