The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

[CLOSED] Grid scrolling without the scrollbar

  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 8: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');
    Daniil Veriga
    Developer & Support Expert
  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. Replies: 8
    Last Post: Apr 04, 2012, 3:06 PM
  2. Replies: 2
    Last Post: Oct 18, 2011, 4:50 PM
  3. Replies: 4
    Last Post: Aug 09, 2011, 9:32 PM
  4. [CLOSED] Buffered Grid View Scrolling
    By bethc in forum 1.x Premium Help
    Replies: 3
    Last Post: Dec 02, 2009, 8:29 AM
  5. Replies: 1
    Last Post: Jan 29, 2009, 11:46 AM

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.