|
|
|
|
|
- Overview
- Programming
- "Check/Uncheck" options
- Filtering options
Context menu of Check Box columns (AAF)
The Table and TreeView Table controls can propose Check Box columns allowing the user to select the requested options. Depending on the number of control rows, it may be tedious for the user to check or uncheck all the rows. The context menu of Check Box columns proposes several specific options that simplify the selections: - Check all: Allows you to check all the switches in the table..
- Uncheck all: Unchecks all switches on the table..
- Filter ... Checked only: Displays only checked rows in the table..
- Filter ... Unchecked only: Displays only unchecked rows in the table..
Note: These options are only available on Switch columns: - Table and TreeView Table controls populated programmatically.
- Table and TreeView Table controls with-in memory data source.
"Check/Uncheck" options - To check or uncheck all the rows of the Table or TreeView Table control, use AAFExecute with the aafCheckAll and aafUncheckAll constants. In this case, the function is applied to the Check Box column.
- To disable the options used to check and uncheck all the rows of the Table or TreeView Table control, use AAFDisable with the aafCheckAll and aafUncheckAll constants. In this case, the function is applied to the Table or Treeview Table control.
- To change the text of the options used to check and uncheck all the rows of the Table or TreeView Table control, use AAFChangeCaption with the aafCheckAll and aafUncheckAll constants. In this case, the function is applied to the Table or Treeview Table control.
Filtering options - To disable the filtering options, use AAFDisable associated with the aafFilter constant on the Table or TreeView Table control. Warning: In this case, all filter options are disabled on the field and its columns..
- To run the filter on the Check Box column found in the Table or TreeView Table control, use TableEnableFilter associated with the filterEqual constant. Example:
TableEnableFilter(COL_SansNom1, filterEqual, 0)
TableEnableFilter(COL_SansNom1, filterEqual, 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|