The code below shows issues on applying criterias to the grid using setCriteria(...). The filter value is not shown on the intField, but the contents of the grids are correctly filtered according to the established criteria.
We encountered this bug using: Version v12.0p_2018-09-23/Enterprise Deployment (2018-09-23)
We encountered this bug using: Version v12.0p_2018-09-23/Enterprise Deployment (2018-09-23)
Code:
VLayout layout = new VLayout(); RootPanel.get().add(layout); DataSource dataSource = new DataSource(); dataSource.setClientOnly(true); dataSource.setTestData(RECORDS); DataSourceField sequenceField = new DataSourceSequenceField("id", "ID"); sequenceField.setRequired(true); DataSourceField textField = new DataSourceTextField("textField", "Text Field"); DataSourceField intField = new DataSourceIntegerField("intField", "Int Field"); dataSource.setFields(sequenceField, textField, intField); ListGrid listGrid = new ListGrid(dataSource); listGrid.setSize("500", "200"); listGrid.setCanEdit(true); listGrid.setAutoFetchData(true); listGrid.setShowFilterEditor(true); layout.addMember(listGrid); Criteria criteria = new AdvancedCriteria(); criteria.addCriteria(new Criteria("intField", "42")); criteria.addCriteria(new Criteria("textField", "filter_value"));
Comment