Questions tagged as 'dropdown'

1
answer

Why this @Html.DropDownListFor does not accept htmlAttributes?

I have a View that will be read-only in some cases. And I do not want to use javascript because it can be disabled on the user side. In the end ... When I do this (for testing) it works perfectly. <div class="form-group"> @Html.LabelF...
asked by 16.11.2017 / 11:50
1
answer

Bootstrap navbar close

Hello, I'm using bootstrap version 4.0 beta-2, and I have a question, how do I close the navbar menu after clicking on an item in the list? By default it is necessary to click on the item and click again on the menu to close it. I found a solu...
asked by 12.11.2017 / 05:02
1
answer

There is no ViewData item of type 'IEnumerable' that has the key

I'm having a problem with the Employee Position that stays in a separate Table, when I try to create an employee selecting the position, it's the error ... but if I assign the position in the Controller (Ex: official.CargoID = 1) it works normal...
asked by 15.11.2016 / 23:53
1
answer

I need help with JQuery and / or JS to Drop Down Dependent Menu

I'm developing a program where you have a drop down menu happy with the Monthly, Weekly or Daily values that are the periodicity in which a system task should be run. Ai has a second drop down menu that should contain options according to what w...
asked by 04.03.2016 / 17:48
1
answer

How to solve dropdown menu problem that does not work on android?

I'm learning to program, I've done the whole site, and it's practically the way I wanted it, at first I had problems with IE, the menu did not work at all, I reformulated the menu, I used examples I got on the internet, I understood all the code...
asked by 30.01.2016 / 22:20
1
answer

Value and ID in the DropDown Cascade

Reference that can help you understand the code. DropDown Waterfall This part here I pass the values that will be added in the second DropDown var classesList = this.GetClasses(Convert.ToInt32(CanalMassivo)); var classesData = clas...
asked by 30.11.2015 / 12:24
1
answer

Dropdown Menu Selection

I would like to show the dropdown menu, the li containing it is still selected. I would like to know if there is any way to do this with CSS only. Follow the example. Thanks! link <!DOCTYPE html> <html lan...
asked by 12.07.2015 / 03:27
1
answer

How to make a dropdown menu open by clicking on top and close when you hover the mouse over it

I've been searching the internet for dropdown menu , I found some very interesting, but I do not find any that do what I mentioned in the title of the question. All menus of the genre that I found, to open need to click on above, and to clos...
asked by 19.02.2015 / 18:54
2
answers

Popular DropDownList with JSON

- Controller - [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } - View - @Html.DropDownList("SellerId", null, "-- Select --...
asked by 31.05.2015 / 17:38
1
answer

Show a div for each option in a dropdown

I have to create a dropdown that will show a div with a button for each dropdown option. For now I have the divs (I have to do more) and the dropdown, but I do not have the JS to show and hide. There will be just one show. <html> <hea...
asked by 06.05.2014 / 16:46