OnFocus event for DropDownList?

1 Answer 174 Views
DropDownList
n/a
Top achievements
Rank 1
n/a asked on 04 Jan 2024, 03:58 PM
We'd like to open the dropdownlist automatically when it receives focus, and then focus on the filter textbox inside the dropdown. Is this possible? Was hoping for an OnFocus event.

1 Answer, 1 is accepted

Sort by
0
Nansi
Telerik team
answered on 08 Jan 2024, 04:55 PM

Hello James,

The DropDownList opens automatically on click event. Since you want to open it when it receives focus, you need to use JavaScript.

You can check our Knowledge Base article how to open the DropDownList on focus. If your UI for Blazor version is 3.5.0. or later, I am additionally sending a REPL example on how to invoke a method, instead of simulate key events. Open the example and tab to focus the DropDownList.

I want to use the case to thank you for this question, because I noticed that the KB article is outdated, for which I logged a task to update it.

Regards, Nansi Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
DropDownList
Asked by
n/a
Top achievements
Rank 1
Answers by
Nansi
Telerik team
Share this question
or