Fork me on GitHub

MvcPager changelog

Version 3.0.1 (8/2/2015):
  1. Fixed a bug where search button and previous page index button is not responding when in Ajax search mode;
Version 3.0 (4/18/2015):
  1. 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;
  2. Fixed a bug where MvcPager failed to initialize in Ajax paging mode if total page count is 1 and PagerOptions.AuthoHide is true;
  3. 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;
  4. Added EnableHistorySupport property to MvcAjaxOptions class which is used to switch browser history support in Ajax paging mode;
  5. 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);
  6. Added DisabledPagerItemTemplate property to PagerOptions class which is used to set html template for the disabled pager items;
  7. Added OnPageIndexError property to PagerOptions class which is used to set the Javascript function to call when page index errors occured;
  8. Added HidePagerItems property to PagerOptions class which is used to hide all pager items in case you need to create your own pager UI;
  9. Added PageIndexBoxId and GoToButtonId proerties to PagerOptions class;
  10. 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;
  11. Renamed PagerItemWrapperFormatString, NumericPagerItemWrapperFormatString, CurrentPagerItemWrapperFormatString, NavigationPagerItemWrapperFormatString, MorePagerItemWrapperFormatString properties to PagerItemTemplate, NumericPagerItemTemplate, CurrentPagerItemTemplate, NavigationPagerItemTemplate, MorePagerItemTemplate accordingly;
  12. Renamed PagerOptions.MaxPageIndex property name to PagerOptions.MaximumPageNumber;
  13. Removed PageIndexBoxWrapperFormatString and GoToPageSectionWrapperFormatString properties from PagerOptions class;
  14. Removed ShowPageIndexBox, ShowGoButton, PageIndexBoxType and GoButtonText properties from PagerOptions class;
  15. Removed PagerItemsSeperator property from PagerOptions class;
  16. Renamed PagedList.StartRecordIndex to PagedList.StartItemIndex;
  17. Renamed PagedList.EndRecordIndex to PagedList.EndItemIndex;
  18. Disabled pager items will not be hyperlinked (removed <a disabled="disabled"></a>);
  19. Added Options method to HtmlPager class for setting PagerOptions property;
  20. Added Options and AjaxOptions methods to AjaxPager class for setting PagerOptions and MvcAjaxOptions properties;
  21. Added HtmlHelper.LoadMvcPagerScript method which is used to load and initialize MvcPager jQuery plugin via Ajax dynamically;
  22. Refactored and improved code quality of the MvcPager jQuery plugin;
  23. Multi language support (English, Simplified Chinese and Tranditional Chinese);
  24. Added Javascript API for getting properties of MvcPager and jump to specified page;
  25. Added more samples to demo project that covers almost all functionalities of MvcPager;
  26. Added more unit tests;
  27. Support ASP.NET MVC 4.0 and higher versions;
Known issues:
  1. If a single partial view contains multiple AjaxPagers with the same value of PagerOptions.PageIndexParameterName property, the Ajax events of all AjaxPagers except the first one will not be triggered in order to prevent duplicate http requests, page index boxes will also not work for all AjaxPagers except the first one;
  2. Browser history support in Ajax paging mode is not supported for Opera and IE7- browsers;
  3. Parameters with empty value in the url will be removed after paging;
  4. When using search functionality within AjaxForm, UnobtrusiveJavaScriptEnabled app setting in the web.config file must be set to true(default), otherwise search result may be loaded more that one times;