Webdiyer.MvcPager 3.0.0

MvcPager

MvcPager is a free and open source paging component for ASP.NET MVC, it expose a series of extension methods for using in ASP.NET MVC applications, the implementation was inspired by Scott Guthrie's PagedList<T> idea, it was first published in 2009 and had been steadily improved and updated since then. The latest version 3.0 is one the most powerful ASP.NET MVC paging controls.

Project home page:
English: http://en.webdiyer.com/mvcpager/
Chinese: http://www.webdiyer.com/mvcpager/

Online demos:
English: http://en.webdiyer.com/mvcpager/demos/
Chinese: http://www.webdiyer.com/mvcpager/demos/

Documentation:
English: http://en.webdiyer.com/mvcpager/docs/
Chinese: http://www.webdiyer.com/mvcpager/docs/

There is a newer version of this package available.
See the version list below for details.
Install-Package Webdiyer.MvcPager -Version 3.0.0
dotnet add package Webdiyer.MvcPager --version 3.0.0
<PackageReference Include="Webdiyer.MvcPager" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Webdiyer.MvcPager --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Fixed a bug where MvcPager failed to generate link url for page index box if the current route contains constraint that limits page index to be ingeter;
Fixed a bug where MvcPager failed to initialize in Ajax paging mode if total page count is 1 and PagerOptions.AuthoHide is true;
Fixed a bug where multiple MvcPagers within a single partial view with the same value of PagerOptions.PageIndexParameterName property will trigger multiple http requests in Ajax paging mode;
Added EnableHistorySupport property to MvcAjaxOptions class which is used to switch browser history support in Ajax paging mode;
Added AllowCache property to MvcAjaxOptions class which is used to indicate whether client cache is allowed in Ajax paging mode (default value is true, only works with GET request, ref to the jQuery docs);
Added DisabledPagerItemTemplate property to PagerOptions class which is used to set html template for the disabled pager items;
Added OnPageIndexError property to PagerOptions class which is used to set the Javascript function to call when page index errors occured;
Added HidePagerItems property to PagerOptions class which is used to hide all pager items in case you need to create your own pager UI;
Added PageIndexBoxId and GoToButtonId proerties to PagerOptions class;
Added ActionName, ControllerName, RouteName, RouteValues and HtmlAttributes properties to PagerOptions class, merged actionName, controllerName, routeName, routeValues and htmlAttributes parameters into pagerOptions parameter for HtmlHelper.Pager() and AjaxHelper.Pager() extension methods and adjusted method overloadings accordingly;
Renamed PagerItemWrapperFormatString, NumericPagerItemWrapperFormatString, CurrentPagerItemWrapperFormatString, NavigationPagerItemWrapperFormatString, MorePagerItemWrapperFormatString properties to PagerItemTemplate, NumericPagerItemTemplate, CurrentPagerItemTemplate, NavigationPagerItemTemplate, MorePagerItemTemplate accordingly;
Renamed PagerOptions.MaxPageIndex property name to PagerOptions.MaximumPageNumber;
Removed PageIndexBoxWrapperFormatString and GoToPageSectionWrapperFormatString properties from PagerOptions class;
Removed ShowPageIndexBox, ShowGoButton, PageIndexBoxType and GoButtonText properties from PagerOptions class;
Removed PagerItemsSeperator property from PagerOptions class;
Renamed PagedList.StartRecordIndex to PagedList.StartItemIndex;
Renamed PagedList.EndRecordIndex to PagedList.EndItemIndex;
Disabled pager items will not be hyperlinked (removed <a disabled="disabled"></a>);
Added Options method to HtmlPager class for setting PagerOptions property;
Added Options and AjaxOptions methods to AjaxPager class for setting PagerOptions and MvcAjaxOptions properties;
Added HtmlHelper.LoadMvcPagerScript method which is used to load and initialize MvcPager jQuery plugin via Ajax dynamically;
Refactored and improved code quality of the MvcPager jQuery plugin;
Multi language support (English, Simplified Chinese and Tranditional Chinese);
Added Javascript API for getting properties of MvcPager and jump to specified page;
Added more samples to demo project that covers almost all functionalities of MvcPager;
Added more unit tests;
Support ASP.NET MVC 4.0 and higher versions;

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.1.1 30,341 8/9/2015
3.0.1 1,071 8/4/2015
3.0.0 1,359 6/10/2015