Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Using a picklist filter for a text field in a ListGrid

    I have a datasource for a table with several varchar columns. I would like to use a picklist as the filter for these columns instead of the default text field used in a ListGrid.

    I know how to create picklist filters using setOptionDataSource() for columns that foreign keys to another table.

    Is there something in the SmartGWT framework that will easily create a picklist filter for a text field using the unique values returned by the datasource?

    Or do I need to create a client only data source for each column, add the unique values into this client data source that I want to display in the filter, and call setOptionDataSource() with this client only data source?
Working...
X