Hi, I'm using a CheckedDropDownList fine, when the user press the Down Arrow key I show the dropdown ShowDropDown().
But I don't wanna it to be shown when the autocomplete is open, like when the user is switching between the suggestions pressing up and down arrows key...
public
static
bool
IsAutoCompleteOpen(
this
RadDropDownList ddl)
{
return
ddl.DropDownListElement.AutoCompleteSuggest !=
null
&& ddl.DropDownListElement.AutoCompleteSuggest.DropDownList !=
null
&& ddl.DropDownListElement.AutoCompleteSuggest.DropDownList.IsPopupOpen;
}
// the key down event
{
if
(e.KeyCode == Keys.Down && ddlItems.IsPopupVisible ==
false
&& ddlItems.IsAutoCompleteOpen() ==
false
)
{
ddlItems.ShowDropDown();
e.Handled =
true
;
}
}
ddl.DropDownListElement.AutoCompleteSuggest is always null, so I can't find which is the correct property of AutoCompleteSuggest on CheckedDropDownList to check, any help?