ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Empty AjaxDropdown
Title:
B
I
{code}
?
I had recently installed the library, and I am able to use `@Html.Awe().Button().Text("hi").OnClick("awem.notif('awesome')")`. My problem is I cannot user AjaxDropdown because is empty. I am doing the same as it is written in the documentation https://demo.aspnetawesome.com/AjaxDropdownDemo *View* @(Html.Awe().AjaxDropdown("CustomerCategory") .Url(Url.Action("GetCustomers", "Home"))) *Controller* public ActionResult GetCustomers() { List<Customer> customersList = new List<Customer> { new Customer { Id = 0, Name = "Juan" }, new Customer { Id = 1, Name = "Pedro" }, new Customer { Id = 2, Name = "Andres" }, }; return Json(customersList.Select(o => new KeyContent(o.Id, o.Name))); }
Save Changes
Cancel
edorguez
asked at 13 Nov 2019
your code looks right, see if there's any errors in the console, if none try this: https://www.aspnetawesome.com/learn/mvc/CommonProblems#Isolate-the-problem
at 13 Nov 2019
Omu
Thanks, that way helped me lol. In the console there was a jQuery error, and as the min setup said, jQuery should be at the top of the document.
at 14 Nov 2019
edorguez
so, your problem was solved ?
at 14 Nov 2019
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK