Getting selected value from the RadCombo box

2 posts, 0 answers
  1. veera
    veera avatar
    6 posts
    Member since:
    May 2009

    Posted 06 Jul 2009 Link to this post

    Iam using RadCombo box with three columns.
    Could you please help me how to get the selected values from three columns.

    Thanks
    Veera
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 Jul 2009 Link to this post

    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.
Back to Top