PDA

View Full Version : Doubt Regarding GWT grid panel cell selection



sumohapa
7 Jan 2010, 12:23 AM
Hi Friends,
I am facing a problem in GWT grid panel. I have a button on click of which I have to select first row first column in the grid. I am writing the code as tabRightTopPanel.getCellSelectionModel().select(1,1);

or tabRightTopPanel.getSelectionModel().selectFirstRow();

But the cell is not getting selected.(the cursor doesn't highlight the cell).Can anybody help me regd this.I am using GWT 1.7.

I am using RowSelectionModel in the gridpanel. Do I have to define a CellSelectionModel and bind it to the grid ? If so, how can I instantiate the CellSelectionModel. It takes a jsObj as constructor argument.How can I get the jsObj.

CellSelectionModel cbSelectionModel = new CellSelectionModel(editorGridPanel.getJsObj());

Thanks in advance.

Regards,
Sudhir

Arno.Nyhm
7 Jan 2010, 9:12 AM
pls double check if you realy use GXT and not gwt-ext - these are complete different products!

sumohapa
7 Jan 2010, 8:30 PM
Hi, Actually I am using GWT-EXT(version 1.7) and not GXT.

Regards,
Sudhir

Arno.Nyhm
8 Jan 2010, 5:29 AM
for gwt-ext pls use this google group for questions:
http://groups.google.com/group/gwt-ext?pli=1