Example #1
0
        public static MvcHtmlString Pager(this AjaxHelper ajax, IPagedList pagedList, string actionName, string controllerName,
                                          string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes)
        {
            var builder = new PagerBuilder(ajax, actionName, controllerName, pagedList, pagerOptions,
                                           routeName, routeValues, ajaxOptions, htmlAttributes);

            return(builder.RenderPager());
        }
Example #2
0
        public static MvcHtmlString AjaxPager(this HtmlHelper html, IPagedList pageList, string actionName, string controllerName,
                                              string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes)
        {
            if (pagerOptions == null)
            {
                pagerOptions = new PagerOptions();
            }
            pagerOptions.UseJqueryAjax = true;

            var builder = new PagerBuilder(html, actionName, controllerName, pageList, pagerOptions,
                                           routeName, routeValues, ajaxOptions, htmlAttributes);

            return(builder.RenderPager());
        }
Example #3
0
        public static MvcHtmlString Pager(this HtmlHelper helper, IPagedList pagedList, string actionName, string controllerName,
                                          PagerOptions pagerOptions, string routeName, object routeValues, object htmlAttributes)
        {
            var builder = new PagerBuilder
                          (
                helper,
                actionName,
                controllerName,
                pagedList,
                pagerOptions,
                routeName,
                new RouteValueDictionary(routeValues),
                new RouteValueDictionary(htmlAttributes)
                          );

            return(builder.RenderPager());
        }