I am trying to use a radCheckedDropDown list in a winforms application (C#). The list is working the way I want it to except for 1 thing.
When I click the dropdown list it shows (which is correct) however while it is open if I start to type in the text area the text popup shows in front of the dropdown popup, and as a result you can click through to the drop down list. What I would like is to close the dropdown portion when typing, and vice versa when using the drop down list.
If I use a standard combobox I can accomplish this by hooking the preview and the droppeddown events, however the radcheckeddropdownlist does not have the droppeddown event.
private void comboBox_DropDown(object sender, EventArgs e)
ComboBox cbo = (ComboBox)sender; cbo.PreviewKeyDown += new PreviewKeyDownEventHandler(comboBox_PreviewKeyDown);
private void comboBox_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
ComboBox cbo = (ComboBox)sender;
cbo.PreviewKeyDown -= comboBox_PreviewKeyDown;
if (cbo.DroppedDown) cbo.Focus();