Hi,
I am trying to get the filtering working as in the showcase:
With my code:
it shows:
How does the filter trigger a dropdown with checkboxes and why only on specific columns?
Is it possible to have an editable dropdown with checkboxes on all columns?
Regards,
Jasper
I am trying to get the filtering working as in the showcase:
Code:
final ListGrid countryGrid = new ListGrid(); countryGrid.setWidth(500); countryGrid.setHeight(300); countryGrid.setDataSource(WorldXmlDS.getInstance()); ListGridField countryCodeField = new ListGridField("countryCode", "Code", 50); ListGridField nameField = new ListGridField("countryName", "Country"); ListGridField capitalField = new ListGridField("capital", "Capital"); ListGridField continentField = new ListGridField("continent", "Continent"); countryGrid.setFields(countryCodeField, nameField, capitalField, continentField); countryGrid.setAutoFetchData(true); countryGrid.setShowFilterEditor(true); countryGrid.draw();
With my code:
Code:
DataSource countryDS = SampleDataSource.getInstance(); mygrid = new ListGrid(); mygrid.setWidth100(); mygrid.setHeight(500); mygrid.setAlternateRecordStyles(true); mygrid.setShowAllRecords(true); mygrid.setAutoFetchData(true); mygrid.setDataSource(countryDS); mygrid.setShowFilterEditor(true); mygrid.draw();
How does the filter trigger a dropdown with checkboxes and why only on specific columns?
Is it possible to have an editable dropdown with checkboxes on all columns?
Regards,
Jasper
Comment