:: Forum >>

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?
Thursday, December 1, 2005


This should set the grid so that row 34 is now at the top of the grid.
Jim Hunter
Friday, December 2, 2005
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.
Sunday, December 4, 2005

This topic is archived.

Back to support forum

Forum search