Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ComboBox > Automatically insert an item

Not answered Automatically insert an item

Feed from this thread
  • Laurent avatar

    Posted on Oct 27, 2011 (permalink)

    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?

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Oct 28, 2011 (permalink)

    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 >>
    Attached files

    Reply

  • Laurent avatar

    Posted on Oct 28, 2011 (permalink)

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ComboBox > Automatically insert an item
Related resources for "Automatically insert an item"

WPF ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]