Hi
I have an autocomplete box associated with a tree view that displays a hierarchy. I'm trying to provide a search on a property of the child items (the Description). In my case it is showing only the items for the first parent item in the list.
e.g.
Parent1
>>> Child1 apple
>>> Child2 pear
Parent2
>>> Child3 peach
>>> Child4 pea
When typing p in the autocomplete box only apple and pear are displayed. I'm guessing it's a binding issue. Here's my XAML:-
Any suggestions?
Thanks
Craig
I have an autocomplete box associated with a tree view that displays a hierarchy. I'm trying to provide a search on a property of the child items (the Description). In my case it is showing only the items for the first parent item in the list.
e.g.
Parent1
>>> Child1 apple
>>> Child2 pear
Parent2
>>> Child3 peach
>>> Child4 pea
When typing p in the autocomplete box only apple and pear are displayed. I'm guessing it's a binding issue. Here's my XAML:-
<StackPanel Orientation="Horizontal"> <telerik:RadAutoCompleteBox Name="radAutoCompleteBox1" VerticalAlignment="Top" WatermarkContent="Enter part of description ..." TextSearchMode="Contains" AutoCompleteMode="Suggest" TextSearchPath="Description" SelectionMode="Multiple" ItemsSource="{Binding Path=ParentCollection/ChildItems}" DropDownItemTemplate="{StaticResource SearchAutoComplete}" DropDownWidth="250" SelectionChanged="radAutoCompleteBox1_SelectionChanged" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Description}" /> </StackPanel><telerik:RadTreeView Name="radTreeView" VerticalAlignment="Stretch" ItemsSource="{Binding Path=ParentCollection}" SelectedItem="{Binding SelectedTreeItem, Mode=TwoWay}" IsTextSearchEnabled="True" telerik:TextSearch.TextPath="Description" ItemTemplateSelector="{StaticResource ItemDataTemplateSelector}" > </telerik:RadTreeView>
Any suggestions?
Thanks
Craig