Hi,
I am using a RadComboBox to select an item from a long, dynamic list (potentially several thousand).
NB: The RadComboBox is being used inside a RadGridView, using GridViewDataColumn.CellEditTemplate
For performance I have had to use the ComboBox Virtualiztion as described here
However when I use Virtulization the AutoComplete filtering gives me a incorrect list. As per the screenshots below.
Without Virtulization I get the correct filtering as shown in the attached image radcomboboxworks.png
When I type in 'John' only the four correct results show in the dropdown.
The code for this is here:
<telerik:RadComboBox
IsFilteringEnabled="True"
TextSearchMode="Contains"
CanAutocompleteSelectItems="True"
CanKeyboardNavigationSelectItems="True"
IsEditable="True"
OpenDropDownOnFocus="True"
DisplayMemberPath="FullNameAndEmployeeId"
SelectedItem="{Binding Employee, Mode=TwoWay}"
telerik:TextSearch.TextPath="FullNameAndEmployeeId"
ItemsSource="{Binding EmployeeList, Source={StaticResource EmployeeDataList}}">
</telerik:RadComboBox>
When I add virtualisation I get some expected items followed by a number of additional items. To make it more odd these extra items seem to be random and will change if I retype 'John'
The code for this is here:
<telerik:RadComboBox
IsFilteringEnabled="True"
TextSearchMode="Contains"
CanAutocompleteSelectItems="True"
CanKeyboardNavigationSelectItems="True"
IsEditable="True"
OpenDropDownOnFocus="True"
DisplayMemberPath="FullNameAndEmployeeId"
SelectedItem="{Binding Employee, Mode=TwoWay}"
telerik:TextSearch.TextPath="FullNameAndEmployeeId"
ItemsSource="{Binding EmployeeList, Source={StaticResource EmployeeDataList}}">
<telerik:RadComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</telerik:RadComboBox.ItemsPanel>
</telerik:RadComboBox>
Any ideas on why this filtering behaviour is different and how to make it filter correctly when using virtualization?
Thanks
Karl
I am using a RadComboBox to select an item from a long, dynamic list (potentially several thousand).
NB: The RadComboBox is being used inside a RadGridView, using GridViewDataColumn.CellEditTemplate
For performance I have had to use the ComboBox Virtualiztion as described here
However when I use Virtulization the AutoComplete filtering gives me a incorrect list. As per the screenshots below.
Without Virtulization I get the correct filtering as shown in the attached image radcomboboxworks.png
When I type in 'John' only the four correct results show in the dropdown.
The code for this is here:
<telerik:RadComboBox
IsFilteringEnabled="True"
TextSearchMode="Contains"
CanAutocompleteSelectItems="True"
CanKeyboardNavigationSelectItems="True"
IsEditable="True"
OpenDropDownOnFocus="True"
DisplayMemberPath="FullNameAndEmployeeId"
SelectedItem="{Binding Employee, Mode=TwoWay}"
telerik:TextSearch.TextPath="FullNameAndEmployeeId"
ItemsSource="{Binding EmployeeList, Source={StaticResource EmployeeDataList}}">
</telerik:RadComboBox>
When I add virtualisation I get some expected items followed by a number of additional items. To make it more odd these extra items seem to be random and will change if I retype 'John'
The code for this is here:
<telerik:RadComboBox
IsFilteringEnabled="True"
TextSearchMode="Contains"
CanAutocompleteSelectItems="True"
CanKeyboardNavigationSelectItems="True"
IsEditable="True"
OpenDropDownOnFocus="True"
DisplayMemberPath="FullNameAndEmployeeId"
SelectedItem="{Binding Employee, Mode=TwoWay}"
telerik:TextSearch.TextPath="FullNameAndEmployeeId"
ItemsSource="{Binding EmployeeList, Source={StaticResource EmployeeDataList}}">
<telerik:RadComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</telerik:RadComboBox.ItemsPanel>
</telerik:RadComboBox>
Any ideas on why this filtering behaviour is different and how to make it filter correctly when using virtualization?
Thanks
Karl