ComboBox DropDownOpened event calls DropDownClosed event

2 posts, 0 answers
  1. Dandan
    Dandan avatar
    17 posts
    Member since:
    Mar 2009

    Posted 07 Apr 2009 Link to this post


    I have a problem in my application:


    I added combo box with 2 events: DropDownClosed and DropDownOpened.

    In DropDownClosed event, I want to add new item to the ItemsSource and fixed the selected item to be the new item.

    In DropDownOpened event, I want to remove the item from the ItemsSource.


    But, when closing the combo box, after DropDownOpened event happened, also DropDownClosed event happened.

     In simple application, it isn’t happened.


    Any idea?


  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 07 Apr 2009 Link to this post

    Hi Dandan,

    I am sorry but unfortunately I was not able to understand what is happening. Could you please provide a sample project where this is happening?

    It seems that you are trying to set how the selected item looks, if so you can use the SelectionBoxItemTemplate property. It will change the outlook of the currently selected item.

    If you need to set an "Empty Message", like so:

    Please, refer to this project:

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top