I have created a editor for listgrid using below code:
SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
DataSource hardwareTypeDS = DataSource.get("hdwDS");
SelectItem selectItem = new SelectItem();
ListGridField typeField = new ListGridField("type");
ListGridField productDescField = new ListGridField("desc");
selectItem.setDisplayField(TYPE_FIELD);
selectItem.setValueField(TYPE_FIELD);
selectItem.setPickListFields(typeField, productDescField);
selectItem.setOptionDataSource(hardwareTypeDS);
selectItem.setAutoFetchData(true);
Now i want the editor to have a filter bar above like we have in listgrids by setiing setShowFilterEditor. How can this be achieved?
SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
DataSource hardwareTypeDS = DataSource.get("hdwDS");
SelectItem selectItem = new SelectItem();
ListGridField typeField = new ListGridField("type");
ListGridField productDescField = new ListGridField("desc");
selectItem.setDisplayField(TYPE_FIELD);
selectItem.setValueField(TYPE_FIELD);
selectItem.setPickListFields(typeField, productDescField);
selectItem.setOptionDataSource(hardwareTypeDS);
selectItem.setAutoFetchData(true);
Now i want the editor to have a filter bar above like we have in listgrids by setiing setShowFilterEditor. How can this be achieved?
Comment