AjaxDropdown

It is declared like this:
<% ParentCategory.AjaxDropdown()
   .Url(Page.Url().Action("GetCategories", "Data")); %>
<awe:Ocon runat="server" ID="ParentCategory" />
The url must return a json of KeyContent collection:
public ActionResult GetCategories()
{
    return Json(Db.Categories.Select(o => new KeyContent(o.Id, o.Name)));
}



By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .