CheckedDropDownList which is the AutoCompleteSuggest member?

2 posts, 0 answers
  1. Leandro
    Leandro avatar
    41 posts
    Member since:
    Jul 2015

    Posted 21 Dec 2018 Link to this post

    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?

  2. Leandro
    Leandro avatar
    41 posts
    Member since:
    Jul 2015

    Posted 21 Dec 2018 Link to this post

    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.

Back to Top