Awesome Core and MVC Controls

AjaxList Demo

    by default the AjaxList will try to get data from the Search action of a controller with same name as it + "AjaxList" but a different Url or controller can be specified using .Url or .Controller extensions

    <br />
    <br />
    public class MealsAjaxListController : Controller
    public ActionResult Search(int page, string parent)
    const int PageSize = 5;
    parent = (parent ?? "").ToLower();

    var list = Db.Meals.Where(o => o.Name.ToLower().Contains(parent));

    return Json(new AjaxListResult
    Items = list.Skip((page - 1) * PageSize).Take(PageSize).Select(o => new KeyContent(o.Id, o.Name)),
    More = list.Count() > page * PageSize // bool - show More button or not


    We use cookies to improve your online experience. By accessing this site, you agree to the use of cookies and other technologies to process your personal data (e.g. IP address) to enhance and personalise your experience across our websites. Additionally, third-party companies, may store cookies on your device and use similar technologies to collect and use certain information. For more information, refer to our privacy policy and cookie policy.