Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    27
    Vote Rating
    0
    AmandaK is on a distinguished road

      0  

    Default Grid viewready event?

    Grid viewready event?


    I had previously been handling the viewready event in my grid to automatically select the first row after the data was loaded. The viewready event is no longer available, so is there another way to accomplish this?

  2. #2
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    27
    Vote Rating
    0
    AmandaK is on a distinguished road

      0  

    Default


    I think I've figured it out. For anyone else who's having this issue, the afterrender event of the Ext.grid.Panel seems to provide the same functionality.

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    13
    Vote Rating
    1
    Mr_Rainbow is on a distinguished road

      1  

    Default Ext.grid.View refresh event seems to be a closer match.

    Ext.grid.View refresh event seems to be a closer match.


    I found that the Grid 'afterrender' event was occurring before the view was ready with the data display, so I changed my code to listen to the grid.View 'refresh' event. Here is a code snippet:

    Code:
    listeners: {
                'afterrender' : function(grid) {
                    var view = grid.getView();
                    if (view) {
                        view.on('refresh', grid.doSomethingToRows, grid);
                    }
                }
            }

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Location
    Seattle, WA
    Posts
    6
    Vote Rating
    0
    ithompson is on a distinguished road

      0  

    Thumbs up Perfecto

    Perfecto


    Quote Originally Posted by Mr_Rainbow View Post
    I found that the Grid 'afterrender' event was occurring before the view was ready with the data display, so I changed my code to listen to the grid.View 'refresh' event. Here is a code snippet:
    This solution worked perfectly for what I needed! Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 25 May 2010, 12:06 AM
  2. grid viewready issue in FF
    By badgerd in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Dec 2009, 2:19 PM

Thread Participants: 2

Tags for this Thread