Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am currently trying to update my code to change the following code line
C#
@Html.DropDownListFor(m => m.Branch, new List<SelectListItem> { new SelectListItem { Text = null, Value = null } },


I need to change this to be a autocomplete dropdownlist,

What I have tried:

Converting code to jquery auto complete issue is i am retrieving my data from a biztalk call into a list and before this option is available it is filtered by a search from another field
Posted
Updated 11-Aug-16 23:03pm
Comments
F-ES Sitecore 11-Aug-16 11:35am    
What do you mean by "autocomplete dropdownlist"?
F-ES Sitecore 12-Aug-16 4:42am    
You'll need to find some kind of jQuery plug-in that supports this. There is a basic autocomplete one in jQuery UI, google "jquery ui autocomplete" and you'll find it.

1 solution

"DropDownList" may not work for you. Forget about "DropDownList". You will need here a jQuery plugin. find Here or make your own. concept is..

> bind your data to separate divs.
> hide them all.
> put a textbox and on that textbox's key event show filtered data(divs).
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900