Results 1 to 3 of 3

Thread: Scroll to bottom with BufferView

  1. #1
    Sencha Premium Member
    Join Date
    May 2010
    Posts
    12

    Default Scroll to bottom with BufferView

    I'm having difficulties getting the grid to scroll to the bottom when using the bufferview extension. Using selectLastRow(), or focusRow() will correctly perform the selection, but the view does not update to show the last row.

    In firefox, I am able to manually get it there by using
    Code:
    var dom = transConfirmation.grid.getView().scroller.dom,
    child = dom.childNodes[0];
    dom.scrollTop = child.clientHeight - dom.clientHeight;
    This does not work in IE7, however. I can see the view jump down, but it immediately resets to the top of the grid.

    I also tried using the ensureVisible function on the GridView, but to no avail.

    Any suggestions?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default

    Have a look at:

    Code:
    grid.getSelectionModel().selectRow(row);
    grid.view.focusCell(row, 0, true);
    Regards,
    Scott.

  3. #3
    Sencha Premium Member
    Join Date
    May 2010
    Posts
    12

    Default

    Hi Scott,

    That worked perfectly. Thank you for your help!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •