RadComboBox - DropDown

6 posts, 0 answers
  1. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 03 Aug 2010 Link to this post

    Hi,

    I have 3 RadComboBox and in the code behind I'm assigning a collection to the Itemssource. When I click dropdown in the combobox it is showing the data but it seems like it's taking some time or kind of slow. Could you let me know why this is happening?

    Thanks!
    Priya
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 04 Aug 2010 Link to this post

    Hi Priya,

    Is it virtualized? Try setting ItemsPanel on the combo like this:
    <telerik:RadComboBox>
        <telerik:RadComboBox.ItemsSource>
            <local:Items />
        </telerik:RadComboBox.ItemsSource>
        <telerik:RadComboBox.ItemsPanel>
            <ItemsPanelTemplate>
                <VirtualizingStackPanel />
            </ItemsPanelTemplate>
        </telerik:RadComboBox.ItemsPanel>
    </telerik:RadComboBox>

    Does it work faster this way?

    Greetings,
    Panayot
    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 banner
  4. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 04 Aug 2010 Link to this post

    Hi Panayot !

    Thanks for the immediate reply. I have tried setting ItemsPanel as you said. It seems better. But still it is kind of sluggish.

    Here is my code

     

     

     

    <StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Bottom" Margin="3">

     

    <Border Background="#99243870" CornerRadius="3">  

     

     

    <TextBlock Style="{StaticResource HeaderWhiteStyle}" Text="Market" /> 

     

    </Border 

     

     

    <ti:RadComboBox x:Name="radcmbboxMarket" Style="{StaticResource OppRadComboHeaderStyle}" SelectedItem="" Margin="-2,0-2,0"> 

     

    <ti:RadComboBox.ItemTemplate 

     

     

    <DataTemplate

     

    <TextBlock Text="{Binding name}" />  

     

     

    </DataTemplate

     

    </ti:RadComboBox.ItemTemplate 

     

     

    <ti:RadComboBox.ItemsPanel

     

    <ItemsPanelTemplate 

     

     

    <VirtualizingStackPanel/> 

     

    </ItemsPanelTemplate

     

     

    </ti:RadComboBox.ItemsPanel

     

    </ti:RadComboBox 

     

     

    </StackPanel>

     

     



    Thanks!
    Priya
  5. Pana
    Admin
    Pana avatar
    748 posts

    Posted 04 Aug 2010 Link to this post

    Hi Priya,

    Can you define sluggish. Also how much items you generate for the items source of the combo and are you sure that the delay is in the combobox and not in somewhat other source?

    Greetings,
    Panayot
    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
  6. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 04 Aug 2010 Link to this post

    Hi Panayot !

    I assigned itemssource inside PageLoaded() method. I'm getting items from the database and It has around 20 items.
    When I click dropdown it is moving down slowly. It is not showing the data quickly. It is kind of animated movement. But I didn't use any animation here.

    Thanks!
    Priya
  7. Pana
    Admin
    Pana avatar
    748 posts

    Posted 04 Aug 2010 Link to this post

    Hello Priya,

    The combobox animates its popup. You can try to change the animation selector set on the combo to stop the animation. You can set to null the animation:AnimationManager.AnimationSelector. I believe there are other properties that can be set on the AnimationManager.

    Best wishes,
    Panayot
    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
DevCraft banner