This is a migrated thread and some comments may be shown as answers.

ComboBoxFilteringBehavior doesn't work with VirtualizingStackPanel

3 Answers 87 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Aleksandar
Top achievements
Rank 1
Aleksandar asked on 03 Mar 2020, 03:30 PM

I've implemented a custom ComboBoxFilteringBehavior but the list won't filter. Looks like it's because I'm using a VirtualizingStackPanel to improve rendering performance of list that contains 1,000+ items. How can I filter the ComboBox list and continue to use the VirtualizingStackPanel?

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 06 Mar 2020, 11:39 AM

Hello Aleksandar,

Filtering is not supported when the control is virtualized. This is mentioned at the den of the Filtering article. I am afraid that currently, there is no customization via RadComboBox's API that will allow you to use both filtering and UI virtualization.

A possible approach that you can try is to subscribe to the text changed event of the TextBox presenting the RadComboBox input and when the Text property of RadComboBox is changed, to manually filter the ItemsSource of the control.

If you have other questions, please let me know.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Aleksandar
Top achievements
Rank 1
answered on 06 Mar 2020, 01:09 PM
I've switched to the RadAutoCompleteBox and it's working better now. I didn't see in the documentation if there was a way to turn on virtualization manually or if it's on by default.
0
Martin Ivanov
Telerik team
answered on 09 Mar 2020, 05:57 PM

Hello Aleksandar,

RadAutoCompleteBox uses RadListBox to show its items. The listbox's UI virtualization is enabled by default.

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ComboBox
Asked by
Aleksandar
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Aleksandar
Top achievements
Rank 1
Share this question
or