tagged [drop-down-menu]

Asp.net mvc dropdown list using ViewBag

Asp.net mvc dropdown list using ViewBag My table in db have fields : `Id`,`Organisation`,`Info`. I want make dropdowm list like that: I'm try to do it, using ViewBag: and in View: ``` @Html.DropDownLi...

21 Sep at 10:25

C# DropDownList with a Dictionary as DataSource

C# DropDownList with a Dictionary as DataSource I want to set `DataTextField` and `DataValueField` of a `Dropdownlist` (languageList) using a Dictionary (list) of `languageCod` (en-gb) as key and lang...

8 May at 11:47

How can I DataBind a List<> of objects to a DropDownList and set the SelectedItem based on a property in the object?

How can I DataBind a List of objects to a DropDownList and set the SelectedItem based on a property in the object? How can I DataBind a `List` of objects to a DropDownList and set the SelectedItem bas...

Blank HTML SELECT without blank item in dropdown list

Blank HTML SELECT without blank item in dropdown list How implement subj? when i write: then default selected item is "aaaa" when i write: ``` aaaa bbbb

3 Jun at 06:44

How to add an item to a drop down list in ASP.NET?

How to add an item to a drop down list in ASP.NET? I want to add the "Add new" at a specific index, but I am not sure of the syntax. I have the following code: ``` protected void Page_Load(object send...

2 Sep at 04:23

How to populate dropdown list before page loads in webforms?

How to populate dropdown list before page loads in webforms? I have the following Page_Load method in my control (System.Web.UI.UserControl): ``` protected void Page_Load(object sender, EventArgs e) {...

22 Apr at 20:4

How do I set the selected item in a drop down box

How do I set the selected item in a drop down box Is there any way to set the selected item in a drop down box using the following 'type' code? The database holds a month.. a

13 Nov at 19:29

ASP.NET MVC - Populate Commonly Used Dropdownlists

ASP.NET MVC - Populate Commonly Used Dropdownlists I was wondering what the best practice is when populating commonly used dropdownlists in ASP.NET MVC. For instance, I have a Country and State select...

20 Nov at 04:1

Selected value for JSP drop down using JSTL

Selected value for JSP drop down using JSTL I have SortedMap in Servlet to populate drop down values in JSP and I have the following code and in JSP ``` ${item.value}

8 Jul at 17:33

Concatenate Two Fields to Display in Dropdown List

Concatenate Two Fields to Display in Dropdown List I am trying to concatenate two fields from a list to display in a dropdown. Below is the code i am trying to use. I don't want to change the model of...

26 May at 20:29

Clearing a drop down list in C#

Clearing a drop down list in C# I truly do hate to ask such a crayon-question... I'm trying to clear, not remove a drop down combo list in VSC#. My ddl lets the user choose the payRate of an employee....

10 Jun at 14:35

Android custom dropdown/popup menu

Android custom dropdown/popup menu How do I do a custom dropdown/popup menu anchored to a button? I need it to work like the popup menu (anchored to a view), and do something when I click an item from...

jQuery to remove an option from drop down list, given option's text/value

jQuery to remove an option from drop down list, given option's text/value I have a drop down list and would like to remove an option from it, given the text/value of that particular option. Is it poss...

30 Dec at 20:57

C# - Dumping a list to a dropdownlist

C# - Dumping a list to a dropdownlist List is populated here, then sorted: Now I need to drop it into the dropdownlist, which is where I'm having issues (using foreach):

1 Nov at 16:3

How to add item to the beginning of List<T>?

How to add item to the beginning of List? I want to add a "Select One" option to a drop down list bound to a `List`. Once I query for the `List`, how do I add my initial `Item`, not part of the data s...

21 May at 11:49

Adding a slide effect to bootstrap dropdown

Adding a slide effect to bootstrap dropdown I'm using [bootstrap](http://twitter.github.com/bootstrap/index.html), and I'd like to add animation to a dropdown. I want to add an animation to it, slide ...

Weird disappearing dropdowns in Opera 10.51 using jQuery fadeIn and HoverIntent

Weird disappearing dropdowns in Opera 10.51 using jQuery fadeIn and HoverIntent Take a look at www.sensenich.com in Opera. I'm not sure if this is specific to my version but Opera seems to do a number...

26 Mar at 12:17

How can change width of dropdown list?

How can change width of dropdown list? I have a listbox and I want to decrease its width. Here is my code: ``` Kg Gm Pound Metric ton Litre Ounce

Placing Images and Strings with a C# Combobox

Placing Images and Strings with a C# Combobox I need to create a dropdown menu, or combobox, for a Windows Forms application which contains a small image and then a string of text next to it. Basicall...

How can I create a dropdown menu from a List in Tkinter?

How can I create a dropdown menu from a List in Tkinter? I am creating a GUI that builds information about a person. I want the user to select their birth month using a drop down bar, with the months ...

6 Mar at 16:1

Best way to check if a drop down list contains a value?

Best way to check if a drop down list contains a value? When the user navigates to a new page, this ddl's selected index is determined by a cookie, but if the ddl doesn't contain that cookie's value, ...

5 Jan at 15:58

Format DropDownList.TextValue

Format DropDownList.TextValue My stored procedure is like this I have a drop down list in asp.net, which I am loading as : But at the `Databind()` statement, I

25 Jan at 15:21

Page refresh in MVC

Page refresh in MVC I'm studing Microsoft ASP MVC framework. Here is a problem I encounterd: I have a view with DropDownList containning a list of countries and another DropDownList for states. The On...

30 Jul at 08:12

Bootstrap dropdown not working

Bootstrap dropdown not working I can't make bootstrap dropdown to work. Here is my html for nav: ``` Home Personal asset loans asds

How do I insert a drop-down menu for a simple Windows Forms app in Visual Studio 2008?

How do I insert a drop-down menu for a simple Windows Forms app in Visual Studio 2008? There appears to be every other kind of drop-down menu--those that allow user input, those for integers only, tho...