|
-
Oct 9th, 2014, 03:41 PM
#1
Thread Starter
Addicted Member
@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
-
Oct 9th, 2014, 07:14 PM
#2
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|