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

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

1 Answer 85 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dipta
Top achievements
Rank 1
Dipta asked on 13 May 2011, 08:17 AM

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.

samplecode:


<
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" />

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 16 May 2011, 09:47 AM
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,
Yana
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
Tags
ComboBox
Asked by
Dipta
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or