Question -> If you apply a filter, it doesn’t refresh the whole tree, it just removes the child records but leaves all the parent items on the grid. Is there a way to remove the parent items as well?

OR

-> Is there a way to filter/hide a parent node if all of its children have been filtered in a hierarchy advanced data grid?

Answer -> For this, you will need to add an additional filter function. Flexicious will then tack on the filter function to its built in filter. See attached example.


HierarchicalFilterFunction.mxml (7.01 kb)

 

In another blog post, we demonstrate how to update summary footers on basis of the filtered data.

Please note, this is only for the ExtendedAdvancedDataGrid, not for Ultimate, for Ultimate, you have the enableRecursiveSearch and enableHideIfNoChildren properties that automatically implement this functionality for you.