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

Autocomplete in RadDropDownList not show dropDownList periodically

1 Answer 200 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Nickolay
Top achievements
Rank 1
Nickolay asked on 01 Nov 2017, 12:13 PM

Hello. In my raddropdownlist is enabled autocomplete function (suggest mode). I'm intercept KeyUp event and when Text.Length in my TextBox element of RadDropDownList is 4,i make request to my API and fill dropDownList. (it's for optimization, because count of all my entities for dropDownList is more than 2 000 000 elements)

 

It's working fine, but only when I press the keys not very fast. If I quickly type a word to search, then a pop-up window with possible results for autocomplete does not showing! I can switch between options by pressing the keys down and up, and the options are changes in the TextBox element, but without a drop-down list.

Question: Is there any event that happens when autocompletion shows a drop-down list? I can catch a situation when the list does not drop out and manually execute the command to display.

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 01 Nov 2017, 01:57 PM
Hi Nickolay,

Thank you for writing.

You can handle the PopupOpened event of the drop-down list element responsible for the displaying the autocomplete data. You can subscribe to the event this way: 
this.radDropDownList.DropDownListElement.AutoCompleteSuggest.DropDownList.PopupOpened += DropDownList_PopupOpened;

Please also consider checking the following KB project discussing a setup similar to yours: https://www.telerik.com/support/kb/winforms/details/server-side-auto-complete-for-raddropdownlist.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DropDownList
Asked by
Nickolay
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or