Hi All,
I have a problem with OptionDataSource on a ListGridField.
I set the OptionDataSource, DisplayField and the ValueField. When the ListGrid is shown some of the values are properly matched and the DisplayField value from the data source is displayed in the grid. However some of the values are not matched and the value of the ValueField is displayed.
For this field I have an EditorType set to ComboBoxItem for which I also have OptionDataSource, DispayField and the ValueField defined and when I enter the edit mode for the row and the field, that is in 'display' mode not matched properly, ComboBox displays the DisplayField value just fine.
When I had less entries in the table in the database for which OptionDataSource is made all the values were properly displayed. When the number of entries grew the problem started showing up.
I tried on the latest Chrome and FireFox and it's the same behavior.
What do I need to set in order to match all the values properly?
I have a problem with OptionDataSource on a ListGridField.
I set the OptionDataSource, DisplayField and the ValueField. When the ListGrid is shown some of the values are properly matched and the DisplayField value from the data source is displayed in the grid. However some of the values are not matched and the value of the ValueField is displayed.
For this field I have an EditorType set to ComboBoxItem for which I also have OptionDataSource, DispayField and the ValueField defined and when I enter the edit mode for the row and the field, that is in 'display' mode not matched properly, ComboBox displays the DisplayField value just fine.
When I had less entries in the table in the database for which OptionDataSource is made all the values were properly displayed. When the number of entries grew the problem started showing up.
Code:
cbItem = new ComboBoxItem(); cbItem.setIcons(newIcon); cbItem.setOptionDataSource(clientFactory.getItemsDS()); cbItem.setValueField("itemid"); cbItem.setDisplayField("name"); cbItem.setAutoFetchData(true); cbItem.setAllowEmptyValue(false); cbItem.setCompleteOnTab(true); cbItem.setHideEmptyPickList(true); ListGridField itemField = new ListGridField("itemid", "Item"); itemField.setEditorType(cbItem); itemField.setOptionDataSource(clientFactory.getItemsDS()); itemField.setValueField("itemid"); itemField.setDisplayField("name"); itemField.setAutoFetchDisplayMap(true);
What do I need to set in order to match all the values properly?
Comment