-
12 Mar 2009 11:36 AM #1
Grid fire rowselect event
Grid fire rowselect event
I have application written in GWT. In GridPanel user can select row and after that application shows ditails of item from this row in the panel below.
Now I want to do the same action without user. After grid panel is loaded I want automaticaly choose one of the rows and show ditails. I have to use some fireEvent function, but grid.fireEvent("rowselect ") doesn't work for me;
-
13 Mar 2009 11:33 AM #2
Hi.
Try firing a GridEvent for the row and column you want.
Example :
NoggyCode:GridEvent gridEvent = new GridEvent(yourGrid); gridEvent.rowIndex = 0; gridEvent.colIndex = 0; yourGrid.fireEvent(Events.CellClick, gridEvent);
-
14 Mar 2009 10:46 AM #3
Thank you for your answer, but I didn't write that I use GridPanel of com.gwtext.client.widgets.grid and fireEvent of this gridPanel can receive only one String parameter.
-
16 Mar 2009 1:50 AM #4
Hi.
Then this is a gwt-ext issue, not gxt.
Try asking on their forum for this...


Reply With Quote