Menu filtering in Gantt control
18 Nov 20181 minute to read
The Gantt control provides the menu filtering support for each column. You can enable the filter menu by setting the AllowFiltering to true. The filter menu UI will be rendered based on its column type, which allows you to filter data. You can filter the records with different operators.
NOTE
The
AllowFilteringproperty should be set totrueto enable the filter menu. Setting theColumns.AllowFilteringproperty tofalseprevents rendering filter menu for a particular column.
Custom component in filter menu
The column.filter.ui is used to add custom filter components to a particular column.
To implement a custom filter UI, define the following functions:
-
create: Creates a custom component. -
write: Wire events for a custom component. -
read: Read the filter value from the custom component.
In the following sample, the dropdown is used as a custom component in the TaskName column.