Hi,
is it possible to use the DataManager to filter hierarchical data with the structure of:
{
Id: string
Name: string,
Children: []
}
Currently, the data manager is used like this
const predicate = new Predicate("Name", "contains", filterValue, true);
const filteredList = new DataManager(this.fieldValues).executeLocal(new Query().where(predicate)) as any[];
but this only applies on the first level of the tree.
Edit: created my own algorithm to filter the treeview. However, I want the filtered nodes to be expanded. Setting the ":expandedNodes" property with the mapped "Id" property does not work. Why?
ref="treeViewReference"
:fields="dataFields"
:showCheckBox="showCheckBox"
:expandedNodes="expandedNodes"
@nodeChecked="onNodeChecked">
this.expandedNodes = this.flatten(this.myValues).map(m => m.MyIdProperty); // yields in an array of strings with the mapped IDs