@html.dropdownlist with 1000 elements
I have a select in my view that have around 1000 elements
I use the sentence:
<body>
...
<td>@html.dropdownlist("MyList")</td>
</body>
My question is:
how can i to optimize this task because take too long in show the view in the browser ?
Any ideas will be thanks
Re: @html.dropdownlist with 1000 elements
Showing a drop-down with that many options is a bad idea regardless. Whenever we have that many options, we use a suggestion box, i.e. a jQuery plug-in that works basically the same way as the auto-complete functionality in a WinForms TextBox. The user starts typing and you use AJAX to populate a drop-down with a small number of matching items.