|
|
|
|
|
- Overview
- How to?
- Filter on a column
- Managing the filters programmatically
- Proposing a filter programmatically
- Don't propose the context menu for implementing a filter on the columns
- Save filters
FAA: Automatic filtering of Table Column controls
The user can filter the content of a Table control by displaying the records corresponding to a condition for example.
Note: These filter options are also available for TreeView Table control fields.. Filter on a column This feature is automatically implemented in Table controls populated programmatically and in Table controls based on a data file, for columns with search (magnifier displayed in the column). All you have to do is right-click the search icon to open the context menu of column:
For managing the filters, this context menu proposes: - to implement a filter ("Filter"):
To do so, select a condition and type the requested value. The content of the Table control is filtered according to the specified condition. Note: The "Is empty" condition filters the column on empty elements. - to set a filter with one of the values in the column.
- to delete a filter that was previously set on the column ("Delete filter").
- to remember filters ("Remember filters").
If this option is enabled: - Filters applied when the window is closed will be automatically executed the next time the window is opened..
- A short message will be displayed to inform the user and to indicate the filters that are set.
- The display duration of this message can be configured by AAFConfigure.
- The toast does not lock the application and can be closed with a simple click.
Remarks: - The context menus displayed when you right-click the column title and the search icon are different. For more details on the options of this context menu, see Context menu of columns.
- In a multilingual application, you have the ability to translate the context menu, see Configuring the menus of AAFs.
Managing the filters programmatically Proposing a filter programmatically Don't propose the context menu for implementing a filter on the columns To avoid proposing the context menu for implementing a search and a filter on the columns, use AAFDisable associated with the aafFilter constant. Save filters The StoreFilterAAF property is used to determine and specify if the filters set by the user on a Table control are saved when an application is closed and opened again. When AAFConfigure is used with the aafToastDurationRestoreFilter constant, it allows you to define the amount of time a toast message appears on the screen to indicate the users that a filter has been set. If you don't want to show the "Remember filters" and "Remember sorts" options in the context menu, simply use AAFDisable with the aafSaveFilterAndSort constant.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|