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

DataFormComboBoxField

1 Answer 63 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 09 Oct 2011, 07:13 PM
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,

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 10 Oct 2011, 07:56 AM
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,
Maya
the Telerik team

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

Tags
DataForm
Asked by
Mark
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or