Fork me on GitHub

AjaxPager class

Returns an HTML container element with Ajax data attributes that contains a list of hyperlinks and text for providing paging functionality to the giver data.
Constructors:
NameDescription
AjaxPager(AjaxHelper ajax, int totalItemCount, int pageSize, int pageIndex,PagerOptions pagerOptions, MvcAjaxOptions ajaxOptions) Initializes a new instance of AjaxPager class with the specified AjaxHelper instance, total item count, page size, current page index, PagerOptions and MvcAjaxOptions instances.
AjaxPager(AjaxHelper ajax, IPagedList pagedList,PagerOptions pagerOptions, MvcAjaxOptions ajaxOptions) Initializes a new instance of AjaxPager class with the specified AjaxHelper instance, data object that implements the IPagedList interface, PagerOptions and MvcAjaxOptions instances.
Public methods:
NameDescriptionReturn value
Options(Action<PagerOptionsBuilder> builder)Method used to create PagerOptions object.AjaxPager
AjaxOptions(Action<MvcAjaxOptionsBuilder> builder)Method used to create MvcAjaxOptions object.AjaxPager
ToHtmlString()Renders AjaxPager to HTML encoded string for display on the page.string