Is there a filtering option anywhere in XamDataTree?
Ordinary TreeView has TreeView.Items.Filter, but I couldn't find anything like that here.
Thanks in advance.
At this time the only way to do this is to apply filtering on the collection used for the ItemsSource, for example if you were using a CollectionView you would apply the filtering to that. The XamDataTree will respect the filtering applied to the collection and only show the items that should be shown.
I am going to submit a new feature request for an implementation of filtering through the XamDataTree rather than having to perform it on the collection.
Could you please post a working example of filtering nodes using a CollectionView?
Hi everyone who tries to filter children too : )
if you want a simple way:
create a Property in your datasource:
Pubilic Visibility IsVisible {get;set;}
create a style:
<Style x:Key="mcs" TargetType="{x:Type Menus:XamDataTreeNodeControl}"> <Style.Setters> <Setter Property="Visibility" Value="{Binding Path=Data.IsVisible}"/> </Style.Setters> </Style>
and use it in your nodelayout by
<Menus:NodeLayout NodeStyle="{StaticResource mcs}"
hth
Hey Guys,
Would any of you be able to provide a working example? Thanks for your help!
Hello Amilcar,
Please see the following forum post: http://www.infragistics.com/community/forums/p/60098/305178.aspx