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

Problem in getting the Selected value from RadComboBox?

1 Answer 112 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 19 Aug 2010, 07:10 AM
Hi,

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.

xmlns:TelerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

======================================================


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


                <telerik:SummerTheme  />

                <telerik:TransparentTheme />

  </TelerikControls:RadComboBox>

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

SivaPrasad.B

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 19 Aug 2010, 02:38 PM
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,
Konstantina
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
SivaPrasad Bevara
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or