Hello,
I have a problem displaying a ComboBox displayField inside a
EditorGridPanel.
When I choose a ComboBox option it appears the setValueField
associated key.
Anyone knows about how I can fix this problem?
I put an ID and a name in the combobox because when I selected this
combobox there is a filter to change the another combobox in the same
grid.
Thank you.
my code.
Object[][] names = Object[][] types = new Object[][] {
new Object[] { "ID1", "name1" },
new Object[] { "ID2", "name2" },
new Object[] { "ID3", "name3" } };
SimpleStore nameStore = new SimpleStore(new String[] { "ID",
"name" }, names );
nameStore.load();
ComboBox cb = new ComboBox();
cb.setStore(nameStore);
cb.setDisplayField("name");
cb.setValueField("ID");
ColumnConfig nameCol = new ColumnConfig("Column Name",
"columnname", 100);
nameCol.setEditor(new GridEditor(cb));
....
BaseColumnConfig[] columnConfigs = new
BaseColumnConfig[] {nameCol, ...}
ColumnModel columnModel = new
ColumnModel(columnConfigs);
...
final EditorGridPanel grid = new EditorGridPanel();
grid.setStore(store);
grid.setSelectionModel(cbSelectionModel);
grid.setColumnModel(columnModel);
....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---