Hi Isomorphic,
My application is using SmartGWT + Spring + Hibernate.
I have made the customize editor list grid.It fetches its record from datasource. Now each record has multiple custombox item with picklist dropdown.
I have below code for customboxitem for each cell.Now when i click on this particular cell and start writing in it then it is not applying the smart filter on the written text rather the complete picklist as drop down is being shown.
When i set the selectItem.setAutoFetchData(true); then it work as expected but not working otherwise.May you please help me out.
DataSource codeDS = DataSource.get(ClientConstants.CODE_DS);
final ComboBoxItem selectItem = new ComboBoxItem();
selectItem.setPickListWidth(300);
ListGridField codeField = new ListGridField(CODE_FIELD);
codeField.setWidth(100);
codeField.setTitle(VIEW_MESSAGE.code());
ListGridField codeDescField = new ListGridField(DESCRIPTION);
codeDescField.setTitle(VIEW_MESSAGE.descripiton_label());
codeDescField.setWidth("100%");
selectItem.setDisplayField(CODE_FIELD);
selectItem.setValueField(CODE_FIELD);
selectItem.setPickListFields(codeField, codeDescField);
selectItem.setOptionDataSource(codeDS);
selectItem.setAllowEmptyValue(true);
selectItem.setSortField(0);
Criteria criteria = new Criteria();
criteria.addCriteria(CONDITION_ATTR_NAME, ClientConstants.DOOR_OR_FRAME_NAME_FIELD);
selectItem.setOptionCriteria(criteria);
selectItem.setAutoFetchData(false);
selectItem.setAddUnknownValues(false);
Could you please help on this?
My application is using SmartGWT + Spring + Hibernate.
I have made the customize editor list grid.It fetches its record from datasource. Now each record has multiple custombox item with picklist dropdown.
I have below code for customboxitem for each cell.Now when i click on this particular cell and start writing in it then it is not applying the smart filter on the written text rather the complete picklist as drop down is being shown.
When i set the selectItem.setAutoFetchData(true); then it work as expected but not working otherwise.May you please help me out.
DataSource codeDS = DataSource.get(ClientConstants.CODE_DS);
final ComboBoxItem selectItem = new ComboBoxItem();
selectItem.setPickListWidth(300);
ListGridField codeField = new ListGridField(CODE_FIELD);
codeField.setWidth(100);
codeField.setTitle(VIEW_MESSAGE.code());
ListGridField codeDescField = new ListGridField(DESCRIPTION);
codeDescField.setTitle(VIEW_MESSAGE.descripiton_label());
codeDescField.setWidth("100%");
selectItem.setDisplayField(CODE_FIELD);
selectItem.setValueField(CODE_FIELD);
selectItem.setPickListFields(codeField, codeDescField);
selectItem.setOptionDataSource(codeDS);
selectItem.setAllowEmptyValue(true);
selectItem.setSortField(0);
Criteria criteria = new Criteria();
criteria.addCriteria(CONDITION_ATTR_NAME, ClientConstants.DOOR_OR_FRAME_NAME_FIELD);
selectItem.setOptionCriteria(criteria);
selectItem.setAutoFetchData(false);
selectItem.setAddUnknownValues(false);
Could you please help on this?
Comment