2 posts, 1 answers
  1. Mark
    Mark avatar
    1 posts
    Member since:
    Jul 2011

    Posted 09 Oct 2011 Link to this post

    Using the the DataFormComboBoxField and setting the DisplayMemberPath and SelectedValuePath properties, however am I missing something as I cannot locate the SelectedValue property. I am using MVVM and am trying to bind to the value that gets selected when the dropdown selection has been made. Any pointers would be appreciated,
  2. Answer
    Maya avatar
    4062 posts

    Posted 10 Oct 2011 Link to this post

    Hi Mark,

    The currently selected item from the DataFormComboBoxField would be reflected in the underlying property of your business object. So, if you have a combo field with all the Clubs listed for a particular Player and this field is bound to ClubID property of the Player (DataMemberBinding = "{Binding ClubID }"), you can read the value of this property - ClubID and get the required item.
    Another possible way to go would be to edit the template of the combo box field, place a RadComboBox inside and bind its SelectedValue/ SelectedItem property.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top