This sample demonstrates the way of filtering TreeGrid columns using menu and excel filter UI. In this sample, click the filtering icon from column header to show filter UI for a particular column. You can change the filter type from the properties panel.
The filtering feature enables the user to view the reduced amount of records based on filter criteria. It can be enabled
allowFiltering property as true.
TreeGrid supports the following filter types. They are
TreeGrid provides support for a set of filtering modes with hierarchyMode property. The below are the type of filter mode available in TreeGrid.
Parent- This is the default filter hierarchy mode in TreeGrid.The filtered records are displayed with its parent records, if the filtered records not have any parent record then the filtered record only displayed.
Child- The filtered records are displayed with its child record, if the filtered records do not have any child record then only the filtered records are displayed.
Both- The filtered records are displayed with its both parent and child record. If the filtered records do not have any parent and child record then only the filtered records are displayed.
None- Only the filtered records are displayed.
In this demo, filter menu enabled by default, you can switch to other hierarchy mode of filtering by using dropdown.
TreeGrid features are segregated into individual feature-wise modules. To use filtering feature, we need to inject
Filter module into the
More information filter configuration can be found in this documentation section.