A user interface widget that allows the user to select one or multiple of a set of values. The list of possible selections is only shown (dropped-down) after the users clicks the widget. This interface is also known as drop-down list or a drop-down menu.
Questions tagged [dropdownbox]
528 questions
                    
                    57
                    
            votes
                
                4 answers
            
        @Html.DropDownListFor how to set default value
@Html.DropDownListFor(model => model.Status, new List 
       { new SelectListItem{Text="Active", Value="True"},
         new SelectListItem{Text="Deactive", Value="False"}})
In view I am using this drop dowenlist coding. I run my… 
        
        satheeshkumar
        
- 755
 - 2
 - 6
 - 10
 
                    37
                    
            votes
                
                8 answers
            
        How to Get Dropdown's Selected Item's text in Kendo UI?
I am using Kendo UI Controls. I want to get the selected text of the dropdown list in jquery. I have used this syntax : 
 $("#ddl").data("kendoDropDownList").text();
I am able to get the text in all browsers except IE. I don't know why this is not…
        
        Ram Singh
        
- 6,664
 - 35
 - 100
 - 166
 
                    31
                    
            votes
                
                5 answers
            
        asp.net dropdownlist - add blank line before db values
On my page I have a DropDownList which I populate with database values from an SqlDataSource (see code below).
How can I add my own text or a blank line before the values?
        
            
            
                
                    
    
    
        
    
    
                
            
        
     
        thegunner
        
- 6,883
 - 30
 - 94
 - 143
 
                    26
                    
            votes
                
                2 answers
            
        bootstrap-select with custom buttons & add new values on the fly
i needed to use a dropdown list that could do that functionality: 
dynamically fetches and loads values from the database
has an embeded search box
has 2 custom buttons on each Li, one for delete and one for edit.
the search field, if the searched…
        
        Theo Itzaris
        
- 4,321
 - 3
 - 37
 - 68
 
                    25
                    
            votes
                
                6 answers
            
        Single Dropdown with search box in it
I want to add search box to a single select drop down option.
Code:
    
                    20
                    
            votes
                
                9 answers
            
        How to change empty_label for modelForm choice field?
I have a field in one of my models like the following:
PAYROLL_CHOICES = (
    ('C1', 'Choice1'),
    ('C2', 'Choice2')
    etc.....
)
payrollProvider = models.CharField(max_length=2, choices=PAYROLL_CHOICES)
When I create a model form for this…
        
        CQP
        
- 937
 - 2
 - 11
 - 17
 
                    19
                    
            votes
                
                8 answers
            
        Display multiple columns in Select2
I'm using select2 and I'd like to show a multicolum table as a drop down, so I need the width of the  drop down container to have a different (larger) width than the input itself
Is it possible to do that?
moreover I'd like to show a table with…
        
        opensas
        
- 60,462
 - 79
 - 252
 - 386
 
                    16
                    
            votes
                
                3 answers
            
        How to create a drop down view like Google Calendar using Toolbar?
I am trying to create something similar to Google Calendar drop down month widget. 
Any help would be really appreciated. 
So far I have an idea that I need to use Toolbar with expandable animation but not sure that's the right direction to move…
        
        Varundroid
        
- 9,135
 - 14
 - 63
 - 93
 
                    14
                    
            votes
                
                4 answers
            
        How to change the BackColor of a ComboBox when DropdownStyle is DropDownList?
I'm trying to change the dispaly color of a ComboBox when the DropdownStyle property is DropdownList. When the property is changed to Dropdown from DropdownList the color changes.
How can I control the view color of the dropdown boxes ?
Thanks
        
        Gowtham Ramamoorthy
        
- 896
 - 4
 - 15
 - 36
 
                    13
                    
            votes
                
                1 answer
            
        Django 'TestForm' object has no attribute 'fields'
I'm using django:
I'm trying to pass a list of tuples from views.py to a dropdown box form but I get this attribute error
forms.py
import logging                                                                   
from django import forms           …
        
        Jalcock501
        
- 389
 - 2
 - 6
 - 18
 
                    12
                    
            votes
                
                5 answers
            
        What is the correct way to read select2 version 4 dropdown selected text?
I am trying to figure out the correct way to read the current selected text (not value) in select2 dropdown item.  I don't see this listed on the documentation.
I can see there is a new DOM element that is the ID of the original select dropdown with…
        
        leora
        
- 188,729
 - 360
 - 878
 - 1,366
 
                    12
                    
            votes
                
                5 answers
            
        Android Spinner dropDownHorizontalOffset not functioning but dropDownVerticleOffest is
I have been diving into the world of Android Spinner controls recently and ran into a small issue. I need to align the left side of the drop down with the very far left of the main spinner control. I have tried using dropDownHorizontalOffset to…
        
        user3261293
        
- 161
 - 1
 - 6
 
                    8
                    
            votes
                
                3 answers
            
        check if a values has been selected from dropdown in c#
I have 3 dropdown boxes (combo box) in asp.net environment.
They are all optional, so if a user has selected anything, i am updating database, if nothing has been selected at all, i am still updating database with null values.
I tried to do this: 
…
        
        iamserious
        
- 5,385
 - 12
 - 41
 - 60
 
                    7
                    
            votes
                
                2 answers
            
        Materialize multiple-select boxes
My understanding is that Materialize doesn't support styled multiple-select boxes - you have to specify browser-default and not use Materialize styling. (correct me if I'm wrong)
So I've tried to make an equivalent with Materialize dropdown with…
        
        Toby 1 Kenobi
        
- 4,717
 - 2
 - 29
 - 43
 
                    5
                    
            votes
                
                2 answers
            
        Bootstrap-select,angularjs dropdown not working
I have this issue and hope to get some advice on how to fix it.
I've moved part of my html page into a partial view and loading it through ng-view
the problem now is that the dropdown-select doens't work anymore,I managed to get the style back but…
        
        cpu2007
        
- 905
 - 4
 - 11
 - 24