Radsplitbutton with large number of objects in dropdowncontent slow to open

2 posts, 0 answers
  1. Laura Edwards
    Laura Edwards avatar
    25 posts
    Member since:
    Jun 2010

    Posted 01 Apr 2011 Link to this post


    I am using a radsplitbutton to display a large number of objects in the dropdown in an itemscontrol. The itemscontrol has virtualization on it. When I click the button to open the dropdown it is extremely slow to open. Is there a way to speed up the opening of the dropdown with a large number of objects or must I wait even with virtualization on the itemscontrol?
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 06 Apr 2011 Link to this post

    Hello Laura Edwards,

    Basically when an ItemsControl is virtualized, it only realizes those items that are in its viewport. So if you limit the size of the veiwport, the number of realized items will be limited.

    You can set the DropDownHeight property to a relatively small height so that your virtualized ItemsControl will only realize the items that can be displayed inside this DropDownHeight. This way you will limit the time it takes for the items to realized thus speeding up the opening of the DropDownContent. For example:
    <telerik:RadSplitButton HorizontalAlignment="Center"
                            Content="{Binding Content}"
                            DropDownContent="{Binding Items}"
                <telerik:RadTreeView x:Name="myTreeView" Loaded="myTreeView_Loaded"
                        <telerik:HierarchicalDataTemplate ItemsSource="{Binding Children}">
                            <TextBlock Text="{Binding Header}" />

    Give this a try and let us know if it works for you.

    All the best,
    Tina Stancheva
    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. DevCraft R3 2016 release webinar banner
Back to Top