How to make a RadComboBox in a Grid not limit to list

2 posts, 0 answers
  1. Simon
    Simon avatar
    56 posts
    Member since:
    May 2008

    Posted 11 Oct 2011 Link to this post


    I have a simple request. I want to allow my combo's to accept values even if the item is not in the list.
    Remember MS Access when you could enter values into a combo that was not LIMIT TO LIST.

    I've got a RadComboBox in a RadGridView as follows...

                         ItemsSource="{Binding Path=Client.Contact}"
                          SelectedValue="{Binding Name, Mode=TwoWay}"
      Things are all bound correctly and work fine against my ViewModel using Prism, (as an aside, the gird editng does not work as nicely as it does if just bound to normal CLR objects).

    However what i want to do is allow the user to enter some text into the editable combo and if it's not in the ItemsSource list, then just accept it and post it to the DataContext. ie this is NOT a limit to list combo.

    Can this be one. The field I am populating is a simple string and not bound by unique Id's or ForeignKeys.

    An example would be great.

  2. Maya
    Maya avatar
    4062 posts

    Posted 12 Oct 2011 Link to this post

    Hi Simon,

    Please take a look at this forum thread for a reference and a sample project illustrating how you could achieve such functionality.

    Kind regards,
    the Telerik team

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

Back to Top