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

CheckedDropDownList which is the AutoCompleteSuggest member?

1 Answer 38 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
Leandro
Top achievements
Rank 1
Leandro asked on 21 Dec 2018, 03:55 PM

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?

1 Answer, 1 is accepted

Sort by
0
Leandro
Top achievements
Rank 1
answered on 21 Dec 2018, 04:02 PM

Ok, forget it, I've just found it by using JustDecompile.

 this is my complete verification:

if (e.KeyCode == Keys.Down && ddlItems.IsPopupVisible == false && ddlItems.CheckedDropDownListElement.AutoCompleteEditableAreaElement.AutoCompleteTextBox.IsAutoCompleteDropDownOpen == false)
           {
               ddlItems.ShowDropDown();
               e.Handled = true;
           }

 

 

Jesus, is hard to find properties here.

Tags
ListControl
Asked by
Leandro
Top achievements
Rank 1
Answers by
Leandro
Top achievements
Rank 1
Share this question
or