Example of Filtering in React Gantt Component

/
/
Filtering

This sample visualizes the manned lunar mission, which landed the first human on the Moon using the Apollo 11 spacecraft in the year 1969. This sample demonstrates the Filtering feature available in Gantt chart. You can filter a particular column using filter menu available in the columns. This sample is also enabled with toolbar searching option, using which you can filter the Gantt content across all the columns.

More Details...

Loading....
Description

The filtering feature enables the user to view reduced amount of records based on filter criteria. The column menu filtering can be enabled by setting allowFiltering property as true and toolbar search box can be enabled by including the search item in the toolbar property.

Gantt supports the following filter types. They are

  • Menu
  • Excel
Gantt chart also provides support for a set of filtering modes with hierarchyMode property. The below are the type of filter mode available in Gantt chart.
  • Parent - This is the default filter hierarchy mode in Gantt chart. The filtered records are displayed with its parent records, if the filtered records not have any parent record then the filtered record alone will be 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.
  • Gantt component features are segregated into individual feature-wise modules. To use filtering feature, we need to inject Filter module, and use the toolbar support we need to inject Toolbar module. To use a selection, inject the Selection module.