Dec 28, 2011, 4:51 PM
[CLOSED] Grid scrolling without the scrollbar
Hi,
I have 2 grids side by side. I want to be able to scroll (vertically) both grids at the same time. I can "sync" the scrolling of grid A with grid B by using the following script:
How can I do that?
I have 2 grids side by side. I want to be able to scroll (vertically) both grids at the same time. I can "sync" the scrolling of grid A with grid B by using the following script:
fucnction SyncScroll()
{
GridA.setHeight(GridB.getHeight() - 30);
GridA.getView().scroller.dom.scrollTop = GridB.getView().scroller.dom.scrollTop;
}
Adding this to the grid B<AfterRender Handler="this.getView().scroller.on('scroll', SyncScroll);"/>
Everything is great. However, I want to hide the scroll bar in Grid A.How can I do that?
Last edited by Daniil; Dec 28, 2011 at 7:02 PM.
Reason: Please use [CODE] tags, [CLOSED]