PDA

View Full Version : EditorGrid & TextField



aclsoftware
6 Jan 2010, 2:54 AM
SOLVED --- I REDOWNLOADED AND RECOPIED DOWN ALL THE CSS FILES AND RECOMPILED. --- SOLVED

We have recently upgraded from GXT version 2.0 to version 2.1. We have also upgraded to the latest version of GWT.

We use a textfield in an editor grid. Since we have done this upgrade we are now not able to use the double click to edit text field like previously. It simply highlights the row and doesnt edit it. There are no errors on the GWT development mode console.

I have searched for this issue in the forums already and cant see anything so apologies if it is there and i have missed it.

Any help would be greatly appreciated. The snippet of code i use is shown below.

Thanks in advance

JJ



.............
TextField<String> text = new TextField<String>();
text.setEmptyText("Enter a keyword value");
text.setAllowBlank(true);

CellEditor cellEditor = new CellEditor(text);
column.setEditor(cellEditor);
configs.add(column);

column = new ColumnConfig();
column.setId(Keyword.ORDER);

//column.setHeader("Order");
column.setSortable(false);
column.setMenuDisabled(true);
column.setResizable(false);
column.setWidth(40);
column.setHidden(false);
configs.add(column);

column = new ColumnConfig();
column.setId(Keyword.KEYWORDID);
//column.setHeader("Order");
column.setSortable(false);
column.setMenuDisabled(true);
column.setResizable(false);
column.setWidth(40);
column.setHidden(false);
//configs.add(column);

cm = new ColumnModel(configs);

keywordStore = new ListStore<Keyword>();
keywordStore.setMonitorChanges(true);

keywordListGrid = new EditorGrid<Keyword>(keywordStore, cm);
keywordListGrid.setClicksToEdit(EditorGrid.ClicksToEdit.TWO);
keywordListGrid.getView().setEmptyText("Please select a keyword.");
keywordListGrid.setBorders(false);
keywordListGrid.setAutoExpandColumn(Keyword.VALUE);
keywordListGrid.setBorders(true);
keywordListGrid.setHeight(300);
keywordListGrid.setWidth(200);
................