I'm capturing left and right keys since the grid doesn't. I want to know how to tell a grid to scroll left and right. I've tried obj.setColumnProperty( "index", iCurrentCol ); where obj is the Active.Controls.Grid object but id doesn't take any action.
setSelectionIndex() in the grid takes a row index but ignores the column index. It affects scrollTop (probably for the scrollbar element as near as I can tell) but very little affects scrollLeft.
What am I missing here? Do I need to clone the code from setSelectionIndex() somehow and do it in my code?
No rush, go live is Tuesday. (But I have a retrieve as this only affects one screen out of dozens). Any help is appreciated.
Object doesn't support this property or method.
Note: This is version 1. In the grid.js file I have there is no getScrollLeft (even when searching with 'ignore case' set).
Using onkeydown event in body
Searching for the DIV element with class 'active-scroll-bars '
(after the grid is populated)
Reading and updating the scrollLeft property of that div by 100
when right and left arrows are clicked.
Finished at noon today as the USA was being whacked in WC...
I sort of guessed this morning that it might have been added only to the new version, so I did it the hard, non-portable way. If I needed it in more than two places I probably would have encapsulated the functionality...
Thanks for the answers, and the widgets, Alex!
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.