dropdown

Is there a max number of options (values) in HTML drop down control?

Does anyone know how many options a drop down list can have? Is it unlimited? How many before performance degrades? ...

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); } ); function showRequestTypes(data, textStatus) { $.each(data, function() { var option = new Option(thi...

How do you reset ASP.Net AJAX cascading dropdown control (client side)

The cascading dropdown control works great except that I am unable to figure out a way to reset the dropdown client-side (in Javascript) My set up is something like this DD1 DD2 DD3 DD4 each DD is dependent on the previous DD and uses webservice to load them. On change of DD3 I need to reset DD4 but the previous selection stays. C...

How to make a DataGridViewComboBoxColumn expand the dropdown to the left?

I've got a DataGridViewCobmoboxColumn that has to be on the far right side of the screen. The items in the cell are wider that the cell width, so the dropdown list is also wider than the cell, so the user can see what top select. When the list drops down, the right side of the dropdown is not visible, and thus the scroll bar is also not ...

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 table? Also, I will need to plan ahead for i18n support for the dropdown strings. ...

Cross Browser dropdown/popup menu over a flash movie

I need to make my dropdown menu apprear over the top of a flash movie, how is this done cross browser? It can be done, IBM do it: http://www.ibm.com/us/ so do GE: http://www.ge.com/ Setting the the WMODE to transparent doesn't work for Firefox Putting it into an Iframe doesnt work below IE7 Any one know the best way to achieve this? ...

Persist data client-side to look up against dropdowns in ASP.NEt

Hi, I have a dropdown list that stores name/value pairs. The dropdown appears in each row of a gridview. The values in the dropdown correspond to a third attribute (data type) not persisted in the dropdown list. I'd like to create a client-side "lookup" table so that when a user chooses a dropdown value, the proper data type populates ...

Somebody explain me Html.DropDown and it's dearest friend SelectList

If you check my earlier questions you may have noticed I just don't get the SelectList and Html.DropDown(). I find it intrigueing that I seem to be the only one in this. So maybe I should try to change my mindset or maybe there are things I don't know that will clear this all up. I really love the whole MVC framework, but SelectList just...

Javascript mouse location

How do I check if the mouse pointer is in/on another div/id/a? ^a href="#" onmouseover="showmenu('top_3_menu_1_1')">Option One function showmenu(elmnt) { document.getElementById(elmnt).style.visibility="visible"; } function hidemenu(elmnt) { if mouse pointer is not in location A or B do something } ...

Universal Dropdown Menu?

I am trying to create a "quick links" dropdown for a site I'm designing and it has to be compatible for all browsers IE6 and up. It needs to remain 120px wide because its position will be static. Using the < select > command and setting a width, this works; however, when the box is opened, IE cuts off the longer texted links where Firefo...

How to set selected index of dropdown to 0 when text of textbox is changed?

Hi, I am using a dropdown to populate a textbox. But if preferred value is not present in dropdown then user directaly enter value in that textbox. If user selects value from dropdown first and then he don't want that value and he types another text in that textbox then at this time the dropdown should be set to index 0 as user is typi...

Javascript dropdown

I did a dropdown using JavaScript where on mouseover the dropdown opens. Now since i am using it in a side menu, i would like that when i go over the dropdown, instead of the dropdown items get over the items underneath, i would like that the items underneath move lower to make space. I managed to achieve this by removing the overflow i...

What is the best way to do a simple Parent-Child drop down in pure Javascript

I need to do a quick and dirty 'Country' --> 'State' drop down relationship on a web form. I only am concerned with the states, provinces, and territories for USA and Canada, and this will be a relatively lightly used form, so a pure javascript solution is probably ideal. ...

dropdown list selectedchanged event is not firing

I am using Ajax enabled page and I did't use any control in this page. Even then SelectedIndexChanged event is not firing. I have added items from database, there is no repeatation and also set autopost back propety="true". I want to add items from database when select one item the selection always shows first element and selectedchanged...

How to make dropdown menu like "delicious" and "google" ?

Hi, I want to make a dropdown menu like delicious has at this http://delicious.com/search?context=all&amp;p=sql&amp;lc=1 page. In this page click the arrow which is with "Search" button. On click it displays a drop down menu, I want the same menu style but on my page I am having a link, what I want with that link a simple small icon wil...

jQuery change() on <select> and firefox

I have a dropdown that triggers an ajax call when its changed: $('.travel-to').change(function(){ $.ajax({ type: "GET", url: "/inc/rates/rates-viewer.php", data: "shtech=y&c_name="+escape($(this).val()), success: function(html){ $(".rates-viewer").html(html); $(".rates-viewer tr.numbers td").css({ opacity: 0 }).fadeTo("...

Change color and appearance of drop down arrow

I want to change the default appearance of the arrow of a dropdown list so that looks the same across browsers. Is there a way to override the default look and feel of the drop down arrow using CSS or otherwise ? ...

C# dropdownmenuitem clicked and listview editing

I have 2 questions concerning C#. 1) I have a dropdown menu with several items in them. They are clickable, but when I click one, the older clicked one stays selected. Click another and the 2 original ones stay selected, and so on. I don't want this. What I want is that when I click one of the dropdownitems, that one is that selected on...

Infragistics grid: Providing intellisense-like edit support in EditorWithText

In the application we are developing we would like to offer the user intellisense-type of editing facitilites when entering measurements. After entering a valid numeric value the user should enter the corresponding unit. To enter a valid unit, a list of valid units pops up in a listbox, see enclosed screen-shot. To change the currently s...

CSS Menu won't show through nested Divs in IE7

If you look at the menu for this site: http://writershore.com/ltlaw/ The menu looks great in Firefox, Chrome, etc, but in IE7 the menu drop downs don't break through the nested DIVs. Is this an overflow issue? A z-index issue? I've tried variations of both and doesn't fix the result in IE. Thanks for any ideas! ...