Ejemplo n.º 1
0
        public static MvcHtmlString AjaxPager(this HtmlHelper htmlHelper, int totalPageCount, int pageIndex, int pageSize, int totalItemCount, string actionName, string controllerName, string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes)
        {
            if (pagerOptions == null)
            {
                pagerOptions = new PagerOptions(htmlHelper);
            }

            var pagerBuilder = new PagerBuilder(htmlHelper, actionName, controllerName, totalPageCount, pageIndex, pageSize, totalItemCount, pagerOptions, routeName, routeValues, ajaxOptions, htmlAttributes);

            return(pagerBuilder.RenderPager());
        }
Ejemplo n.º 2
0
        public static MvcHtmlString Pager(this HtmlHelper htmlHelper, int totalPageCount, int pageIndex, int pageSize, int totalItemCount, string actionName, string controllerName, PagerOptions pagerOptions, string routeName, object routeValues, object htmlAttributes)
        {
            var pagerBuilder = new PagerBuilder(htmlHelper, actionName, controllerName, totalPageCount, pageIndex, pageSize, totalItemCount, pagerOptions, routeName, RouteValueDictionaryExtensions.Convert(routeValues), RouteValueDictionaryExtensions.Convert(htmlAttributes));

            return(pagerBuilder.RenderPager());
        }