sirtoozee
23 Jul 2007, 1:02 AM
When I deleted a row in the grid, then reloaded the data store, for example, deleted the ID = 41 row, shown as below:
http://www.archermind.com/admin/files/a1.png
Then I reloaded the data source via
ds.reload();
then I also wanna focus on the updated row via
/* FocusID = 41 here. */
grid.getView().focusRow(FocusID);
grid.getSelectionModel().selectRow(FocusID);
shown as below:
http://www.archermind.com/admin/files/a2.png
It lost the focus but went to the ID = 0 row instead, if added simple alert script, it could focus onto the reloaded row, shown as below:
http://www.archermind.com/admin/files/a3.png
Can someone help me? Thanks a lot:)
http://www.archermind.com/admin/files/a1.png
Then I reloaded the data source via
ds.reload();
then I also wanna focus on the updated row via
/* FocusID = 41 here. */
grid.getView().focusRow(FocusID);
grid.getSelectionModel().selectRow(FocusID);
shown as below:
http://www.archermind.com/admin/files/a2.png
It lost the focus but went to the ID = 0 row instead, if added simple alert script, it could focus onto the reloaded row, shown as below:
http://www.archermind.com/admin/files/a3.png
Can someone help me? Thanks a lot:)