-
20 Mar 2011 7:03 PM #1
Grdpanel focusRow doesn't work
Grdpanel focusRow doesn't work
Hi all,
My application will add a new record in resources. Then I want to focus on the row which has been added. My code is like below:
The row will be added and the grid is re-group correctly but it doesn't go to the added row. It just goes to the first row.Code:this.grid.store.loadData(newResource, true); this.grid.store.groupBy("Category", true); this.grid.getView().focusRow(this.resourceStore.indexOfId(staffid));
Anyone knows this issue? Pleas help me thanks very much.
-
20 Mar 2011 7:37 PM #2
Grdpanel focusRow doesn't work
Grdpanel focusRow doesn't work
Look like it goes to that added row already but the grid is refresh and it goes to the first row again.
-
20 Mar 2011 11:24 PM #3
Grdpanel focusRow doesn't work
Grdpanel focusRow doesn't work
I know the reason. The loadData method will fire an event "load" so the grid will be loaded again so it goes to the first row instead of my focused row.
Do you know how to solve this issue?
-
29 Mar 2011 9:15 PM #4
Similar problem with focusRow()
Similar problem with focusRow()
I have a similar problem.
My `store` was reloaded. Before that I add a listener for store.on('load',...)
Handler function has got parameters with desired row number and looks as this:
Row is actually selected but not focused. View of the `agrid` is scrolled to top.Code:agrid.store.on('load', function (s,r,o){ agrid.getView().focusRow( this.row ); agrid.getSelectionModel().selectRow( this.row ); }, {row: somerow} , {single:true}); myStore.reload();
I'm at a loss.
-
30 Mar 2011 4:45 PM #5
-
14 Nov 2012 11:23 PM #6
Can we do it without using delay?
Similar Threads
-
GrdPanel looses view on reconfigure
By Thomas233 in forum Ext 2.x: Help & DiscussionReplies: 18Last Post: 6 Aug 2009, 3:47 AM -
grid.getView().focusRow(n) does not seems to work if grid was renderd using Ajax
By pchandr in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 27 Mar 2009, 11:20 AM -
How to scroll to a Grid's row (focusRow, scrollTo doesn't work)
By maya in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 7 Oct 2007, 5:18 AM -
GridView focusRow() does not work if column 0 is hidden
By jarrod in forum Ext 1.x: BugsReplies: 2Last Post: 20 Dec 2006, 6:48 PM -
In Grids, does not work function "focusRow" :(
By lbpf in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 29 Nov 2006, 6:39 AM


Reply With Quote