[CLOSED] Grid scrolling without the scrollbar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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:
    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]
  2. #2
    Hi,

    I was curious will scrolling work with a hidden scrollbar or not? It works. At least, in IE9. I didn't check in other browsers.

    Though I can't 100% guarantee it will work in all cases and all browsers.

    To hide a vertical scrollbar, please use:
    GridPanel1.getView().scroller.setStyle('overflow-y', 'hidden');
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    I was curious will scrolling work with a hidden scrollbar or not? It works. At least, in IE9. I didn't check in other browsers.

    Though I can't 100% guarantee it will work in all cases and all browsers.

    To hide a vertical scrollbar, please use:
    GridPanel1.getView().scroller.setStyle('overflow-y', 'hidden');

    That did it!
  4. #4

    How is it in Ext 2.x version ?

    This code is not working in 2.5.2.

    Could you please re-write for 2.5.2 ?
  5. #5
    Hello @gumush75!

    We have responded this question in the corresponding thread you created at Ext.NET 2 section!

    Here it is: Grid scrolling without the scrollbar.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Infinite Scrolling Grid with GridFilter feature - JavaScript Error
    By MacGarnicle in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 04, 2012, 2:06 PM
  2. Replies: 2
    Last Post: Oct 18, 2011, 3:50 PM
  3. Replies: 4
    Last Post: Aug 09, 2011, 8:32 PM
  4. [CLOSED] Buffered Grid View Scrolling
    By bethc in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 02, 2009, 7:29 AM
  5. Replies: 1
    Last Post: Jan 29, 2009, 10:46 AM

Posting Permissions