-
3 May 2011 7:24 AM #1
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?
-
3 May 2011 1:04 PM #2
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.
-
23 May 2011 6:32 AM #3
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); } } }
-
1 Jun 2012 2:12 PM #4
Similar Threads
-
[FIXED-849] LockingGridView doesn't fire 'viewready' event after render
By mankz in forum Ext 3.x: BugsReplies: 1Last Post: 25 May 2010, 12:06 AM -
grid viewready issue in FF
By badgerd in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 3 Dec 2009, 2:19 PM


Reply With Quote