Problem in getting the Selected value from RadComboBox?

2 posts, 0 answers
  1. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 19 Aug 2010 Link to this post


    I am using RadComboBox to change the theme of the Rad controls.It is working fine. But I need the selected value of the RadComboBox in the Xaml.cs to change the theme of some silverlight controls. I am using the following code to change the theme and to get the Selected value in the Xaml.cs page.




    <TelerikControls:RadComboBox x:Name="themesBox" SelectedIndex="0" Grid.Row="2" Grid.Column="5" SelectionChanged="themesBox_SelectionChanged" >              

                    <telerik:SummerTheme  />

                    <telerik:TransparentTheme />


       <TelerikControls:RadDatePicker x:Name="date"
                                                          telerik:StyleManager.Theme="{Binding SelectedValue, ElementName=themesBox}"></TelerikControls:RadDatePicker>


    private void themesBox_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
                string strSeletedValue = themesBox.SelectedValue.ToString();


    In the above theme changing is working fine, but facing the problem in getting the seleted value.

    Please help.

    Thanks in Advance,


  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 19 Aug 2010 Link to this post

    Hello SivaPrasad Bevara,

    Thank you for contacting us.

    The code you send us looks fine. Could you please share with us what difficulties do you experience at getting the SelectedValue? If you could provide us with some more details about your scenario will be very helpful.

    Looking forward to your reply.

    Sincerely yours,
    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