21,923 questions
36
votes
23
answers
151k
views
Sorting a DropDownList? - C#, ASP.NET
I'm curious as to the best route (more looking towards simplicity, not speed or efficiency) to sort a DropDownList in C#/ASP.NET - I've looked at a few recommendations but they aren't clicking well ...
1
vote
2
answers
575
views
How should I implement a dropdown box which contains a list of items which need to be shown in different languages?
I'm trying to design a form which contains a dropdown box containing a list of grocery item choices.
What criteria should I look at when trying to decide on whether to use a java enum or a lookup ...
5
votes
9
answers
4k
views
Drop Down List Issue
I’m having an issue where a drop down list in IE 6/7 is behaving as such:
You can see that the drop down width is not wide enough to display the whole text without expanding the overall drop down list....
1
vote
3
answers
13k
views
When does a DropDownList retain the value from postback at the SelectedIndexChanged Event Handler
To Clarify to all this problem absolutely does not stem from rebinding of the controls and the value does not remain the initial value after binding.
I have a DropDownList on an aspx page which is ...
2
votes
2
answers
884
views
How do I resequence dropdown list controls like the NetFlix queue from the client side (Javascript)
We have a series of drop down controls that determine the sort order of columns. The problem we are having is when the user selects a column as the 2nd column the other dropdown lists need to have ...
2
votes
1
answer
675
views
ToolTipping a Drop Down list
I have a drop down list in a GridView. The data inside the drop down list has variable length but the drop down list is of a fixed size. How can a tooltip be displayed over each item without selecting ...
10
votes
4
answers
59k
views
Adding ListItems to a DropDownList from a generic list
I have a this aspx-code: (sample)
<asp:DropDownList runat="server" ID="ddList1"></asp:DropDownList>
With this codebehind:
List<System.Web.UI.WebControls.ListItem> colors = new ...
10
votes
3
answers
47k
views
jQuery create select list options from JSON, not happening as advertised?
How come this doesn't work (operating on an empty select list <select id="requestTypes"></select>
$(function() {
$.getJSON("/RequestX/GetRequestTypes/", showRequestTypes);
}
...
8
votes
7
answers
81k
views
"DropDownList.SelectedIndex = -1" problem
I just want an ASP.NET DropDownList with no selected item. Setting SelectedIndex to -1 is of no avail, so far. I am using Framework 3.5 with AJAX, i.e. this DropDownList is within an UpdatePanel.
Here ...
3
votes
8
answers
30k
views
DropdownList autoposback after client confirmation
I have a dropdownlist with the autopostback set to true. I want the
user to confirm if they really want to change the value,
which on post back fires a server side event (selectedindexchanged).
I ...
4
votes
4
answers
14k
views
How can I navigate based on select element option clicks?
I am wanting to write some jQuery code that converts a HTML
<select>
<option> Blah </option>
</select>
combo box into something (probably a div) where selecting an item ...
8
votes
6
answers
24k
views
HTML Select Tag with black background - dropdown triangle is invisible in Firefox 3
I have the following HTML (note the CSS making the background black and text white)
<html>
<select id="opts" style="background-color: black; color: white;">
<option>first</...