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

Getting selected value from the RadCombo box

1 Answer 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
veera
Top achievements
Rank 1
veera asked on 06 Jul 2009, 10:33 AM
Iam using RadCombo box with three columns.
Could you please help me how to get the selected values from three columns.

Thanks
Veera

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 06 Jul 2009, 01:40 PM
Hi veera,

It depends on how you data-bind RadComboBox. Generally you just need to cast the RadComboBox.SelectedItem property to the object you are data-binding the control to. For example, consider the following sample:
http://demos.telerik.com/silverlight/#ComboBox/DataBinding

To get the properties of the selected Agency you need to add the following code in your method:
Agency selectedAgency = RadComboBox1.SelectedItem as Agency;
string name = selectedAgency.Name;

All the best,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
veera
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or