Automatically insert an item

3 posts, 0 answers
  1. Joël
    Joël avatar
    32 posts
    Member since:
    Sep 2011

    Posted 27 Oct 2011 Link to this post

    I have a RadComboBox with a list of strings as item. My RadComboBox has IsEditable property to True. I wanted to know how I could do that when the user enters a value in the input field of RadComboBox, it is added to the list of items if it is not already there?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Oct 2011 Link to this post

    Hi Laurent,

    I can suggest you the following solution: hook to the KeyUp event of the ComboBox and on the click of the insert key to add the item into your collection. Attached I am sending you a sample project which illustrates this approach.

    Hope this helps.

    Regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Joël
    Joël avatar
    32 posts
    Member since:
    Sep 2011

    Posted 28 Oct 2011 Link to this post

    This is too funny, that's exactly what I coded, pending your response. So I did the right thing. Thank you.
Back to Top