dropdownlist

DropDownListFor not binding on Edit View with repeating items (List<T>)

Here is the thing. I have an Edit view, which doesnt bind the dropdowns' value when I open it. [NonAction] public List<SelectListItem> VraagType() { List<SelectListItem> l = new List<SelectListItem>(); SelectListItem a = new SelectListItem(); SelectListItem b = new SelectListItem(); a.Text = "Mee...

Gridview combine autogenerated fields and template fields

I have several sqldatasources for my gridview. All of the columns are autogenerated. However they all have some consistent fields and I'd like to make those fields template fields so I can modify the edit template for them such as adding a drop down menu. Is this possible? If so, how? :-D Thanks! ...

Scrollbars in dropdownlist inside DataGrid itemEditor not working

Hello Flexperts, I have a DropDownList inside the itemEditor of my DataGrid. There are enough items in the DropDownList to justify scrollbars. You can see the scrollbars, and the mousewheel works fine. If you move the mouse over the scrollbars, they'll change appearance fine (mouseover is working). If you click on them, the DropDown...

How to get data for a dropdownlist into viewmodel when using AutoMapper/AutoMapViewResult

After reading ASP.NET MVC 2 in Action and watching Jimmy Bogard's presentation from MvcConf (both highly recommended!), I began to implement some of their ideas. One of the cool things they do, is not only to use AutoMapper to map your entities to some viewmodel, but automate this with an AutoMapViewResult: public class EventsControlle...

How can I create a DropDownList?

I have two tables: Area and Boss. An Area has a Boss, it has a foreign key relationship of Area.IDBoss and that is Boss.ID. I hope I'm explaining my question properly. :P As of now I can manually type in a number in the textbox and it saves correctly, I can also display the name correctly because I'm using Entity Framework, something l...

drop down menu: dotted border and solid border in one line

Hi, How can I use css to make the dotted border and solid border in one line in a drop down menu this site, http://blip.tv/ here is the image I highlighted the line that I meant above, here is the link of the drop menu which I fail to make the line like above. what I get is either a total solid border or dotted border, and I can't ...

How to use JQuery to Disable "specific" Dropdowns

My Goal: Checking radio button will disable the 'same' column of dropdownlist in a number of separate tables. I understand you can assign ID's and act on those ID's, or using by Tag Name. However, I am new to ASP and have a unique situation that neither of these options appear at the surface to work for me. I have a web form, that h...

css & jquery drop down menu: z-index bug on IE

Hi, following up to the thread below, I managed to create the drop down menu like blip.tv's, http://stackoverflow.com/questions/3508484/drop-down-menu-dotted-border-and-solid-border-in-one-line here is the outcome, http://quack-project.net/tmp/3/index.php I use css and jquery to achieve that. It works fine on all browers (Firefox, ...

multicolumn dropdownlist extender

I'm looking for a free multi columns dropdownlist for my school project. Has been google for a while but found nothing. Do you guys have any recommendations? ...

Font style to dropdownlist asp.net

Hi All, I am trying to display all the fonts available in the system with its own style. But it is not working. I am following for color it is working fine. Problem: This code is working fine in firefox but not in IE. Is there any option to make it work. Code: foreach (FontFamily font in fonts.Families) { ddlFontN...

How to display a DropDownList?

I want to load a DropDownList with possible Paises from my database. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Backend; using Backend.Models; namespace Frontend_UI_Web.Administrativos { public partial class Ciudad : System.Web.UI...

Filter subcategory dropdownlist inside editable template of listview/formview asp.net

In my listview object insert/edit template, I have two dropdownlists (category, subcategory). When a user selects a category (autopostback), I would like the subcategory dropdown to filter to only the those that match the categoryID from the category ddl. This seems to be complicated by the fact that it is in a listview object. I'm curre...

CSS Menu disappears when trying to mouse over in IE 8 in compatibility mode

I have created a drop down menu with CSS which works great in Firefox, Chrome and IE8, but fails when when in IE8 compatibility mode. When you try to mouse over the drop down menu, it disappears. You can see this issue in action at: http://chocolat.digitaldementia.ca/chocolat. I have spent the last 4 days trying to find a fix for this pr...

Using Jquery for country, city and location

if australia is selected, it will show only city of australia, if city is selected, will only show location of that city ...

how to add an arrow in a drop-down menu

Hi, I have a working simple jquery drop-down menu. But problem is how can I put an arrow or just '+' character each other like other usual menus if list has sub-menu, of course. function Mx_menu(){ $(".menu ul").css({display: "none"}); // Opera Fix $(".menu li").hover(function(){ $(this).find('ul:first').css({vi...

What is the most comfortable datatype I can use to populate a DropDownList with?

For example, I want a user to create a new fanclub for a given Team. Obviously the teams have to be loaded into a DropDownList so they are chosen from a pre-set choice group. The list of teams are returned from a database. As of now I'm doing things like this: //FindAll() returns IQueryable<Team> var Teams = teamsRepo.FindAll().AsEnum...

RTL Dropdown Problem in Browsers (Windows7 or Vista)

I have problem in RTL drop-down in windows7 or Vista. As you know browsers usually use OS listbox to show these components. I want to ask how to restyle drop-down with CSS in RTL or if it is not possible, do you know free useful drop-down widget(in GWT)? Regards ...

How to get values of Dropdownlist MVC 2 for insert in DB

Hi everyone, I am beginning in this issue MVC 2 I hope you can help me. I created a basic model public class RegisterModel { public string Name { get; set; } public int idCountry { get; set; } public string Country { get; set; } } And I have in the controller the following public ActionResult Register() ViewData["c...

Multiple DropDownLists - Call Single Function with ID

I have the following code which toggles the visibility of one of a pair of DropDownLists based on the selected radio button. This code works but my problem is that I have several sets of controls just like this on a single form. How can I use a single JavaScript Toggle() function, irrespective of the ID of the RadioButtonList that trigge...

$.getJSON interpreted differently by IE - Ruby on Rails

Hello, I am trying to do the classic category -> subcategory chained dropdowns (where selecting something in category, populates the subcategory). The code I have works in all browsers except IE (naturally). Here is the JS code I am using: $("body select#category").data_binding({ child: "select#company_subcategory_id", url: "s...