This is a migrated thread and some comments may be shown as answers.

Problem with IsDropDownOpen

2 Answers 393 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 28 Dec 2010, 03:11 PM
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 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 03 Jan 2011, 04:18 PM
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
0
Jason
Top achievements
Rank 1
answered on 03 Jan 2011, 04:30 PM
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
Tags
ComboBox
Asked by
Jason
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jason
Top achievements
Rank 1
Share this question
or