Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
    Ritter is on a distinguished road

      0  

    Default GridPanel Scroll

    GridPanel Scroll


    Hi
    i am trying to scroll to the last Element of a GridPanel, the last Element is allready focused by
    _this.testpanel.getSelectionModel().selectLastRow( );

    I have tryed many ways but non of them worked...
    The GridPanel is saved via _this.testpanel =new Ext.grid.GridPanel(...

    In the load function i tried

    _this.testpanel.getRow(_this.receiver_list.getStore().getCount()-1).scrollIntoView(_this.receiver_list.getView(),false);

    This one does nothing.

    _this.receiver_list.getView().getRow(_this.receiver_list.getStore().getCount()-1).scrollIntoView("receiver_list");

    This one scrolls the Form, the GrindPanel is inside.

    Please Help me, i´m nearly freaking out with this!
    Thx Ritter

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please have a look at :

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

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
    Ritter is on a distinguished road

      0  

    Default


    Thanks for your reply Scott, the Problem is not that i cant focus.
    I just cant see the focus befor i scroll down.
    So i want to scroll down automatic.
    Thanks for the help!

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    To clarify this, you want to scroll down to the last record that is focused? Have you tried this code?
    Please be more specific if I have missed your request:

    Code:
    text: 'Go bottom',
    handler: function() {
        var lastRecord = grid.store.getCount()-1; // same as selectLastRow(); 
        grid.getSelectionModel().selectRow(lastRecord);
        grid.view.focusCell(lastRecord, 0, true);    
    }
    Scott.

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    20
    Vote Rating
    2
    jennifer123 is on a distinguished road

      0  

    Default


    Try this

    Code:
    text: 'Go bottom', 
    handler: function() {
         var lastRecord = grid.store.getCount()-1; 
         grid.getSelectionModel().selectRow(lastRecord);
         grid.getView().focusRow(lastRecord);     
    }

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi