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

Selection Changed Example

1 Answer 166 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 11 Aug 2010, 09:28 AM
Hello, please help me with ComboBox
<ComboBox x:Name="ComboBox" SelectionChanged="ComboBox_SelectionChanged">
                    <ComboBoxItem Content="Item1"></ComboBoxItem>
                    <ComboBoxItem Content="Item2"></ComboBoxItem>
 </ComboBox>
 private void ComboBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if (ComboBox.SelectedItem != null)
            {
                ComboBoxItem cbItem = (ComboBoxItem)ComboBox.SelectedItem;
                if (cbItem.Content.ToString() == "Item1")
                {

                }
                else if (cbItem.Content.ToString() == "Item2")
                {

                }
            }
        }

How can i do the the with telerik:RadComboBox?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 12 Aug 2010, 12:46 PM
Hello Andrey,

Thank you for contacting us.

The RadComboBox has the same SelectionChanged event. So, the code is exactly the same for RadComboBox as the one you pasted.

Could you please share with us what difficulties do you experience with RadComboBox? For more information you can refer to our online documentation: http://www.telerik.com/help/silverlight/radcombobox-getting-started.html

Best wishes,
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
Andrey
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or