Fork me on GitHub

PagerOptions.ShowNumericPagerItems property

Gets or sets a value indicating whether the numeric pager items should be displayed.

Syntax:

public bool ShowNumericPagerItems {get; set;}

Default value:

true

Example:

@Html.Pager(Model,new PagerOptions{ShowNumericPagerItems=false})

This property value can be set to false via the Options method as bellow:

HtmlPager:

@Html.Pager(Model).Options(o=>o.HideNumericPagerItems())

AjaxPager:

@Ajax.Pager(Model).Options(o=>o.HideNumericPagerItems()).AjaxOptions(a=>a.SetUpdateTargetId("target"))

Live demo:

@Html.Pager(Model).Options(o=>o.HideNumericPagerItems())
FirstPrevNextLast