Need help with Databinding combobox

3 posts, 0 answers
  1. Will Ferguson
    Will Ferguson avatar
    40 posts
    Member since:
    Aug 2009

    Posted 01 Sep 2010 Link to this post

    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. George
    Admin
    George avatar
    1332 posts

    Posted 03 Sep 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Will Ferguson
    Will Ferguson avatar
    40 posts
    Member since:
    Aug 2009

    Posted 03 Sep 2010 Link to this post

    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?.

Back to Top