Support for filtering with a VirtualizedStackPanel (or workaround)

4 posts, 1 answers
  1. Jon
    Jon avatar
    16 posts
    Member since:
    May 2011

    Posted 20 May 2011 Link to this post

    Hello,

    I have a very common problem that I have seen referred to multiple times in this forum.

    My RadComboBox (Q1 2011) has several thousand items in it, and opening the dropdown is very sluggish and sometimes unusable. Using the VirtualizedStackPanel allows the dropdown to run blazing-fast, but of course I lose the ability to filter (as documented and mentioned in other forum posts).

    The problem is that it is absolutely crucial that I'm able to perform filtering and have the speed provided by the VirtualizedStackPanel. All forum replies are unclear as to whether you plan on supporting this in the future. In the meantime, I was hoping that you could point me to a reasonable solution.

    I did find a solution deep in your documentation that went so far as to use some kind of Google search provider, but the implementation was very involved.

    Is there a simple way to mimick filtering behavior with a VirtualizedStackPanel? I'm open to just about anything at this point.

    Thanks for your time,
    Jon
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 May 2011 Link to this post

    Hi Jon,

    Please find attached a sample project in which is illustrated how you can use virtualization and autocomplete together.

    Hope this will help.

    All the best,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Thomas Roithmeier
    Thomas Roithmeier avatar
    17 posts
    Member since:
    Jul 2010

    Posted 19 Jun 2011 Link to this post

    Hi,

    I am having the same problem as Jon and tried out the sample project. My problem is that there are no Items shown in the ComboBox now unless there is at least one letter entered. Is it possible to show the whole list when the drop down is opened and still get the performance with the AutoComplete functionality?

    Thanks!
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Jun 2011 Link to this post

    Hi Thomas,

    Since, I suppose you have customized the approach to fit your scenario, looking at the sample project I can suggest you to add in the OnAutocompleteProviderChanged property the following line:

    provider.GetItems(string.Empty);

    That will add 20 items in the ComboBox.

    Hope this helps.

    Greetings,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top