[CLOSED] Sync Scroll 2 Grids

  1. #1

    [CLOSED] Sync Scroll 2 Grids

    How can I sync the scrolling of 2 grids that have the same number of items in each independent store?
    Last edited by Daniil; Jun 13, 2011 at 3:52 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I'd try to make a single scrollbar for these two grids. I mean placing them in one container.
  3. #3
    unfortunately these 2 grid are in separate regions of a view port...east and west.
    Can I use

    #{gridFund}.getView().focusRow(25);
    Which as I can see will scroll my grid for me...

    I was hoping to get a handler for the BodyScroll.

    Not sure what parameters I can access from this, but ideally I'd like to set the focusRow() of the second grid using this method...

    Any idea?
  4. #4
    Ok, then a single scrollbar is not an option.

    Well, .focusRow() sounds good.

    Please investigate these two examples how to work with scroller.
    http://forums.ext.net/showthread.php?11031
    http://forums.ext.net/showthread.php?9326
  5. #5
    Do you know, or can you point me to where I can find out what parameters are passed to the BodyScroll handler?



    <Listeners>
    <BodyScroll Handler="HandlerBScroll" />
    </Listeners>
    fucntion HandlerBScroll(?,?,?,?)
    {
    
    }
  6. #6
    Hi,

    this.getView().scroller.on('scroll', syncScroll); // add this code to AfterRender event of GridPanel1
    
    function syncScroll(){
        GridPanel2.getView().scroller.dom.scrollTop = GridPanel1.getView().scroller.dom.scrollTop;
    }

Similar Threads

  1. [CLOSED] Sync Row Selection Across 2 grids
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 29, 2011, 8:01 PM
  2. [CLOSED] Sync grouping of 2 different grids
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 14, 2011, 3:58 PM
  3. [CLOSED] how to sync size textfield in Gridpanel
    By skyone in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jul 22, 2010, 4:23 PM
  4. sync callback
    By gisxiaowei in forum 1.x Help
    Replies: 0
    Last Post: Aug 20, 2009, 11:50 AM
  5. Examples - Community DLL in sync?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Feb 17, 2009, 1:40 PM

Tags for this Thread

Posting Permissions