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

Need help with Databinding combobox

2 Answers 75 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Will Ferguson
Top achievements
Rank 1
Will Ferguson asked on 01 Sep 2010, 07:23 AM
2 related tables. Let's call them 'Players" and "Teams"
they are related by a field TeamID

when editing a Player I want to able to use a CboBox to edit his team

Importantly is that I am Editing not creating new players

when I select an existing  player the WPF Form should display that players current Team in a combobox

and allow me to change it (ie it's populated with all teams)

I'm getting confused with databinding in WPF. My data is EDMX Data which I am querying into an observable collection

I used to do this stuff so easily in Windows Forms. I just can't seem to grasp what is happening in WPF

Anybody ?

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 03 Sep 2010, 04:57 PM
Hello,

Attached you can find a sample illustrating how to use RadComboBox with Entity Model. You can replace the connectionstring as well.

I hope this helps! 

Greetings,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Will Ferguson
Top achievements
Rank 1
answered on 04 Sep 2010, 04:15 AM
This somewhat helpful. But this sample is an Add form not an edit form. If I added some buttons "Next" "Previous" to move through the records would the combobox value change accordingly?.

Tags
ComboBox
Asked by
Will Ferguson
Top achievements
Rank 1
Answers by
George
Telerik team
Will Ferguson
Top achievements
Rank 1
Share this question
or