A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Aypn CNN,
You can open the dropdown menu when the user clicks on the input box without entering any text.
First set minLength to 0, if you type and then backspace it will show all items.
minLength: 0,
Adding the following code will open the dropdown menu when the user clicks on the input.
$('[id*=txt_SubCategory]').on("click", function () {
ev = $.Event("keydown");
ev.keyCode = ev.which = 40;
$('[id*=txt_SubCategory]').trigger(ev);
return true;
});
$('[id*=txt_SubCategory]').typeahead({
hint: true,
highlight: true,
minLength: 0,
source: function (request, response) {
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.