SelectedIndex=0 is not setting the default value of dropdown as first element of Itemsource

2 posts, 1 answers
  1. Dipta
    Dipta avatar
    7 posts
    Member since:
    Apr 2011

    Posted 13 May 2011 Link to this post

    Currently i am facing issue regarding selectedindex of rad Silverlight Combobox.I am using CSPCombox which is nothing but wrapper class of Silverlight Rad Combox,but issue is that when i set selectedIndex=0,its not setting the default value as first element of itemsource.Please give some suggestion to resolve that as soon as possible.


    CSP:CSPComboBox Grid.Row="0" Grid.Column="1" Width="125" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center"




    SelectedIndex="0" DisplayMemberPath="Value" SelectedItem="{Binding Path=SelectedEventSubscriptionType, Mode=TwoWay}"




    ItemsSource="{Binding Path=EventSubscriptionTypes, Mode=OneWay}"





    TabIndex="0" SelectionChanged="AlertType_SelectionChanged" />


  2. Answer
    Yana avatar
    5041 posts

    Posted 16 May 2011 Link to this post

    Hello Dipta,

    I've tried to reproduce this issue with the provided code but without much success. I've attached my test project, could you please download it and examine it?

    Best wishes,
    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