Fork me on GitHub

PagerOptionsBuilder class

Represents a PagerOptions builder that is used to create the PagerOptions object.
Constructors:
NameDescription
PagerOptionsBuilder(PagerOptions pagerOptions) Initializes a new instance of PagerOptionsBuilder class using the specified PagerOptions object.
Public methods:
NameDescription
AddHtmlAttribute(string key, object value)Adds an item to HtmlAttributes property of PagerOptions
AddRouteValue(string key, object value)Adds an item to RouteValues property of PagerOptions
AlwaysShowFirstLastPageNumber()Sets the AlwaysShowFirstLastPageNumber property of PagerOptions value to true
DisableAutoHide()Sets the AutoHide property of PagerOptions value to false
HideDisabledPagerItems()Sets the ShowDisabledPagerItems property of PagerOptions value to false
HideFirstLast()Sets the ShowFirstLast property of PagerOptions value to false
HideMorePagerItems()Sets the ShowMorePagerItems property of PagerOptions value to false
HideNumericPagerItems()Sets the ShowNumericPagerItems property of PagerOptions value to false
HidePagerItems()Sets the ShowPagerItems property of PagerOptions value to false
HidePrevNext()Sets the ShowPrevNext property of PagerOptions value to false
SetActionName(string actionName)Sets the ActionName property of PagerOptions with a given value
SetContainerTagName(string tagName)Sets the ContainerTagName property of PagerOptions with a given value
SetControllerName(string controllerName)Sets the ControllerName property of PagerOptions with a given value
SetCssClass(string cssClass)Sets the CssClass property of PagerOptions with a given value
SetCurrentPageNumberFormatString(string format)Sets the CurrentPageNumberFormatString property of PagerOptions with a given value
SetCurrentPagerItemTemplate(string template)Sets the CurrentPagerItemTemplate property of PagerOptions with a given value
SetDisabledPagerItemTemplate(string template)Sets the DisabledPagerItemTemplate property of PagerOptions with a given value
SetFirstPageRouteName(string routeName)Sets the FirstPageRouteName property of PagerOptions with a given value
SetFirstPageText(string text)Sets the FirstPageText property of PagerOptions with a given value
SetGoToButtonId(string id)Sets the GoToButtonId property of PagerOptions with a given value
SetHorizontalAlign(string alignment)Sets the HorizontalAlign property of PagerOptions with a given value
SetHtmlAttributes(IDictionary<string, object> attributes)Sets the HtmlAttributes property of PagerOptions with a given value
SetId(string id)Sets the Id property of PagerOptions with a given value
SetInvalidPageIndexErrorMessage(string msg)Sets the InvalidPageIndexErrorMessage property of PagerOptions with a given value
SetLastPageText(string text)Sets the LastPageText property of PagerOptions with a given value
SetMaximumPageIndexItems(int itmes)Sets the MaximumPageIndexItems property of PagerOptions with a given value
SetMaximumPageNumber(int number)Sets the MaximumPageNumber property of PagerOptions with a given value
SetMorePagerItemTemplate(string template)Sets the MorePagerItemTemplate property of PagerOptions with a given value
SetMorePageText(string text)Sets the MorePageText property of PagerOptions with a given value
SetNavigationPagerItemsPosition(PagerItemsPosition position)Sets the NavigationPagerItemsPosition property of PagerOptions with a given value
SetNavigationPagerItemTemplate(string template)Sets the NavigationPagerItemTemplate property of PagerOptions with a given value
SetNextPageText(string text)Sets the NextPageText property of PagerOptions with a given value
SetNumericPagerItemCount(int itemCount)Sets the NumericPagerItemCount property of PagerOptions with a given value
SetNumericPagerItemTemplate(string template)Sets the NumericPagerItemTemplate property of PagerOptions with a given value
SetOnPageIndexError(string handler)Sets the OnPageIndexError property of PagerOptions with a given value
SetPageIndexBoxId(string id)Sets the PageIndexBoxId property of PagerOptions with a given value
SetPageIndexOutOfRangeErrorMessage(string msg)Sets the PageIndexOutOfRangeErrorMessage property of PagerOptions with a given value
SetPageIndexParameterName(string prmName)Sets the PageIndexParameterName property of PagerOptions with a given value
SetPageNumberFormatString(string format)Sets the PageNumberFormatString property of PagerOptions with a given value
SetPagerItemTemplate(string template)Sets the PagerItemTemplate property of PagerOptions with a given value
SetPrevPageText(string text)Sets the PrevPageText property of PagerOptions with a given value
SetRouteName(string routeName)Sets the RouteName property of PagerOptions with a given value
SetRouteValues(RouteValueDictionary values)Sets the RouteValues property of PagerOptions with a given value