3.2.0

setSelectedRows hides the top row under the header bar

I am trying to make it so that when the grid opens, the user is faced with the focus set on the grid and the first row highlighted so that if they simply press return it goes into an edit screen for that row.

This is finally (after endless experiments) working except that when the grid opens, the top row looks as if it scrolls up under the header bar. There is no scroll bar so you cant get it down to see it (because the grid is longer than the number of records displayed), unless you sort one of the columns. If you just press return you do go into the edit screen of the correct row, so it seems to be working.

I'm using obj.setSelectedRows([0]) to do this.
Ian B
September 4,
Yes, unfortunately there is a bug in 2.0.1 which triggers this behavior -

http://www.activewidgets.com/javascript.forum.14590.0/bug-in-2-0-1.html

The workaround is using setScrollTop(0);
Alex (ActiveWidgets)
September 4,
Thanks for that - it has sorted out that problem. However, is it possible to highlight this row when the grid is first displayed?

The row is now obviously selected and if the user clicks on a row or cursors up or down, they get a blue highlighted row, but not when the grid is first displayed.

I would have thought that if the row is selected, it should be blue.

Ian B
September 5,

This topic is archived.

See also:


Back to support forum