Problem with IsDropDownOpen

3 posts, 0 answers
  1. Jason
    Jason avatar
    25 posts
    Member since:
    Aug 2012

    Posted 28 Dec 2010 Link to this post

    Hello,

    I am handling the DropDownOpened event by asking the user about saving changes if need be and setting the IsDropDownOpen property based upon the user feedback.  The problem is that when I set the IsDropDownOpen to false it seems to leave the ComboBox in a strange state.  The very next time that I click on the ComboBox, it highlights but does not dropdown.  In addition all other controls in the application do not respond to anything until I click the combobox again.  Then everything seems to work fine.  Please advise.

    Thank,

    Jason Munger
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Jan 2011 Link to this post

    Hi Jason,

    I managed to reproduce the problem. As far as I can see there is some problem with the timing so the popup stays open and doesn't allow clicking on the items below it. You can fix that by using Dispatcher. When closing the dropdown use:
    Dispatcher.BeginInvoke(new Action(()=>
        {
        combo1.IsDropDownOpen = false;
        }));

    Hope that helps. Let me know if you have further questions.

    All the best,
    Boyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason
    Jason avatar
    25 posts
    Member since:
    Aug 2012

    Posted 03 Jan 2011 Link to this post

    Thanks for the response.  I wound up using the dispatcher in the SelectedIndex property to capture the original value and set it back if need be.  Seems like a similiar type of solution.

    Thanks,

    Jason
Back to Top