dropdownlist

Dropdown menu in IE6 inserting too much width, not dropping-down

I have a CSS dropdown menu which is working great in IE7, FF, Safari, and Opera (on PC, haven't been able to test on Mac yet). Unfortunately in IE6 - which my clients on this project are all using, urgh - the menu stretches too wide and covers the site logo. Also, none of the dropdowns work. To some extent I could live with the dropdo...

Provide users with a search feature filtering a dropdownlist

Hi I'm developing an ASP.NET form for data-entry. Users have to select a client from a dropdownlist that is filled with about 1000 clients. Now the client list is growing and the users have requested that I add a lookup feature: they'd like to type part of the name and filter the dropdownlist with clients whose name match. So if they ...

How to disable DropDownList option in asp.net at server-side?

I have a dropdownlist to fill in server-side an some of the options that will filled to the this list need to be disabled. Practically I know that I need to add a disabled='disabled' attribute. That is the first way I tried. Dim avListItems = activityVersions.Select(Function(av) New With {.Text = av.Text, .Value = av.Value, .Disabled=a...

Get the current index in an ASP.Net 2.0 Repeater control

Hello, Maybe this is something very easy to do it but so far it's taking me all day to have something working. I have a repeater filled with a table. Each row in the repeater has a set of controls. The most important of them is a drop down list with AutoPostback = true. This ddl has to postback when the user changes the selected inde...

How to get the value form a dropdown list using xajax.getFormValues?

I have a form and have several text box, and a dropdown list. I am using the following jquery code to get the values of my form // JQuery Code parentFormName = $(this).parents('form').attr('name'); xajax_addNewRecord( xajax.getFormValues(parentFormName) ); My php code looks something like this: protected function addNewRe...

Select the correct entry in a drop down list on the basis of database entry?

I have a simple Crud application where there is one filed called Category. During Creation , for Category I have provided a simple drop down box which lists all categories. During Editing, I need to get the same drop down box with the entry in the database chosen.How do i do this. For creation i used say <p><b>Category:</b>&nbsp;&nbsp;...

dropdownlists vs input (HTML)

I've recently run into a problem where too many drop down lists on a page have resulted in performance issues. I was just wondering if changing these dropdownlists to inputs would remedy the situation at all? I was thinking of using the spinner jquery UI plugin as an alernative. Any suggestions? thanks in advance Shawn ...

Create a dropdownlist using ActiveRecord

I have a table called ProjectRegion. It has two columns, an id and a title. I successfully use ActiveRecord to get all the rows. I want to create a drop down list where I assign the id column to the value and the title to the text. I suspect I'll be able to do something like- ProjectRegion[] projRegion = ProjectRegion.FindAll(); DropDow...

ASP.NET MVC Canadian Province Drop Down List

Anyone have have a dropdownlist helper method with a list of Canadian Provinces? Based upon this question I was looking to find a Canadian Province equivalent. Hopefully this will save someone some extra typing, or lead to an even better answer. ...

SelectedValue which is invalid because it does not exist in the list of items

I encounter this problem repeatedly, and haven't a clue what is causing it. I get an exception in the DataBind: "SelectedValue which is invalid because it does not exist in the list of items". Here are some important pieces of information: 1) I reload listOrgs periodically when the underlying data has changed. 2) The Organization.DTList...

make drop down list item unselectable

I have a dropdownlist which has several options for generating reports. Based on the type of account the user has certain options which should be visible but not selectable (as an incentive for them to upgrade). I was wondering if anyone knew of a way to accomplish this. The permissions are already in place i just need assistance with...

MySQL Drop Down to Return result...seems simple?

I have a PHP registration that calls a mysql db for a dropdown box. No worries, it works fine. What I can't figure out though is this: The box HAS TO populate with a name, but the POST needs to go to an id field. What I mean is this: REGISTRATION.PHP function generate_business_selections($default = '') { $output = ''; $applicatio...

jquery not working correctly, no errors reported

I am working on a jquery code that has a form country dropdown list USA state dropdown list non-usa state text input box The goal is to have a country dropdown, If a user selects USA then it will show the USA state list and hide the other state text input. If a user selects a country other then the USA then it should HIDE the U...

django model/modelForm - How to get dynamic choices in choiceField?

hi i'm experimenting with django and the builtin admin interface. I basically want to have a field that is a drop down in the admin UI. The drop down choices should be all the directories available in a specified directory. If i define a field like this: test_folder_list = models.FilePathField(path=/some/file/path) it shows me all t...

PHP - Using a drop down list to change site theme

I have a drop down list where users can select a theme for the site. The only problem is, I'm not quite sure how to properly load the theme once they press "Apply". I am new to PHP. I know if I use GET, it will pass the variables through a the current page and add them to the end of the URL. I would really like to avoid that. So, I g...

How to set one of the values in dropdownlist as selectedvalue in asp.net mvc?

I have a dropdownlist with values -1,1,2 and text A,B,C i wanna set B as selectedValue by default when the page is loaded. Something which can be done at the Page Level i.e in aspx or ascx. ...

Dropdownlist with <optgroup>s for version 1.1 of asp.net?

Is it possible to create a select box containing optgroups with asp:DropDownList in version 1.1 of asp.net? Similar question has been asked here and elsewhere for newer versions of asp.net with solutions involving ControlAdapters or custom controls like the ones from SharpPieces but all this doesn't seem to be compatible with asp.net 1....

Performance Diff on using DataTable vs ArrayList as Datasource on ASP .NET

I am currently working on a web application. I was just wondering which has a better performance when used as a DataSource for say a DataGridView or a DropDownList control. I believe that DataTable is harder to create unless you get it from a DataReader but if you have a ORM layer that abstract the use of DataAccess classes like DataRea...

ASP.NET Dropdown List Problem

I am using a asp.net drop down list and it's pulling in a collection of Category Names. The category names have html tags in them like firstname'<'br /'>'lastname. I want to get rid of those tags only in the Drop Down List, I can't change the name. Right now, the break tags show in the drop down. ...

VB.Net DropDown List SelectedIndex Question

In a VB.Net application, how can I either: Find the dropDownList selectedIndex position of something just added to a database. Have a form restart with the most recently-added entry showing in the DropDownList, by way of modifying the inline SQL query to display by date/time added. ...