AjaxRadioList
Declaration:<% ParentCategory.AjaxRadioList()
.Url(Page.Url().Action("GetCategories", "Data")); %>
<awe:Ocon runat="server" ID="ParentCategory" />
Data binding
By default it will look for a controller with the same name as it + "AjaxRadioList" and that controller must have aGetItemsaction, but you can also specify
.Url(str), the same
urlcan be reused by the
AjaxDropdownand
AjaxCheckboxList, because they all return a collection of
KeyContent. Example of AjaxRadioList controller action:
public ActionResult GetCategories()
{
return Json(Db.Categories.Select(o => new KeyContent(o.Id, o.Name)));
}
Applies to all version