Hi,
I have applied custom filtering on the Treeview on Drop down selection change. Let's say I have applied filter to show only checked nodes and it did only showed me checked nodes. After filtering I unchecked one or more nodes but It didn't hide them so I figured that I might have to apply Filter on it again which I did but it didn't applied any filter nor did it go to the Filter Function that I have linked to it as well. Al thought it's working from UI.
Here's my code:
TreeView.TreeViewElement.FilterPredicate = FilterNode;
private bool FilterNode(RadTreeNode node)
{
bool filter = false;
//Code
return filter;
}
//For applying the filter
TreeView.Filter = string.Empty;
TreeView.Filter = "Custom";
Let me know if that makes any sense.
Thanks,
Attiqe
I have applied custom filtering on the Treeview on Drop down selection change. Let's say I have applied filter to show only checked nodes and it did only showed me checked nodes. After filtering I unchecked one or more nodes but It didn't hide them so I figured that I might have to apply Filter on it again which I did but it didn't applied any filter nor did it go to the Filter Function that I have linked to it as well. Al thought it's working from UI.
Here's my code:
TreeView.TreeViewElement.FilterPredicate = FilterNode;
private bool FilterNode(RadTreeNode node)
{
bool filter = false;
//Code
return filter;
}
//For applying the filter
TreeView.Filter = string.Empty;
TreeView.Filter = "Custom";
Let me know if that makes any sense.
Thanks,
Attiqe