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

SelectedValue of a ComboBox in a ChildWindow

1 Answer 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nafez
Top achievements
Rank 1
Nafez asked on 12 Mar 2012, 12:16 PM
Hello there,

Can anyone please tell me whats wrong with this code?!! I have tried everything with this combobox to bind its selected value correctly to the clientType but none worked!!! Attached are two screenshots of the case.

I deeply appreciate your help as I surveyed the whole Internet but I couldnt find any solution!!!
<telerik:DataFormDataField Grid.Column="1" Label="Client Type">
                       <telerik:RadComboBox Name="ClientTypeCombo" ItemsSource="{Binding Source={StaticResource ClassClientContainer}, Path=ClientTypes}" DisplayMemberPath="Description" SelectedValuePath="qClientType" SelectedValue="{Binding qClientType, Mode=TwoWay}"></telerik:RadComboBox>
                   </telerik:DataFormDataField>

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 15 Mar 2012, 02:35 PM
Hi Nafez,

I understand how this can get confusing. I am sending you a project where you can see that SelectedValuePath does change the SelectedValue. Just the selected value is not the value that is displayed in the TextBox of the ComboBox. More info you can find in this help article. Also you can see this example.

Kind regards,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Nafez
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or