public static MvcHtmlString Pager(this AjaxHelper ajax, int totalItemCount, int pageSize, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes) { var totalPageCount = (int)Math.Ceiling(totalItemCount / (double)pageSize); var builder = new PagerBuilder(ajax, actionName, controllerName, totalPageCount, pageIndex, totalItemCount, pagerOptions, routeName, routeValues, ajaxOptions, htmlAttributes); return(builder.RenderPager()); }
public static MvcHtmlString AjaxPager(this HtmlHelper html, int totalItemCount, int pageSize, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes) { if (pagerOptions == null) pagerOptions = new PagerOptions(); var totalPageCount = (int)Math.Ceiling(totalItemCount / (double)pageSize); var builder = new PagerBuilder(html, actionName, controllerName, totalPageCount, pageIndex, pagerOptions, routeName, routeValues, htmlAttributes); return builder.RenderPager(); }
public static MvcHtmlString AjaxPager(this HtmlHelper html, int totalItemCount, int pageSize, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions pagerOptions, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes) { if(pagerOptions == null) pagerOptions = new PagerOptions(); pagerOptions.UseJqueryAjax = true; var totalPageCount = (int) Math.Ceiling(totalItemCount/(double) pageSize); var builder = new PagerBuilder(html, actionName, controllerName, totalPageCount, pageIndex, totalItemCount, pagerOptions, routeName, new RouteValueDictionary(routeValues), ajaxOptions, new RouteValueDictionary(htmlAttributes)); return builder.RenderPager(); }
public static MvcHtmlString AjaxPager(this HtmlHelper html, int totalItemCount, int pageSize, int pageIndex, 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 totalPageCount = (int)Math.Ceiling(totalItemCount / (double)pageSize); var builder = new PagerBuilder(html, actionName, controllerName, totalPageCount, pageIndex, totalItemCount, pagerOptions, routeName, routeValues, ajaxOptions, htmlAttributes); return(builder.RenderPager()); }
public static MvcHtmlString Pager(this HtmlHelper helper, int TotalCount, int pageSize, int pageIndex, string actionName, string controllerName, PagerOptions pagerOptions, string routeName, object routeValues, object htmlAttributes) { var totalPageCount = (int)Math.Ceiling(TotalCount / (double)pageSize); var builder = new PagerBuilder ( helper, actionName, controllerName, totalPageCount, pageIndex, pagerOptions, routeName, new RouteValueDictionary(routeValues), new RouteValueDictionary(htmlAttributes) ); return builder.RenderPager(); }
public static MvcHtmlString Pager(this HtmlHelper helper, int totalItemCount, int pageSize, int pageIndex, string actionName, string controllerName, PagerOptions pagerOptions, string routeName, object routeValues, object htmlAttributes) { var totalPageCount = (int)Math.Ceiling(totalItemCount / (double)pageSize); var builder = new PagerBuilder ( helper, actionName, controllerName, totalPageCount, pageIndex, totalItemCount, pagerOptions, routeName, new RouteValueDictionary(routeValues), new RouteValueDictionary(htmlAttributes) ); return(builder.RenderPager()); }
public static MvcHtmlString Pager(this AjaxHelper ajax, int totalItemCount, int pageSize, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions pagerOptions, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary<string, object> htmlAttributes) { int totalPageCount = (int)Math.Ceiling((double)(((double)totalItemCount) / ((double)pageSize))); PagerBuilder builder = new PagerBuilder(ajax, actionName, controllerName, totalPageCount, pageIndex, pagerOptions, routeName, routeValues, ajaxOptions, htmlAttributes); return builder.RenderPager(); }