Fork me on GitHub

PagerOptions.HidePagerItems property

Gets or sets a value indicating whether MvcPager should be hidden (in case you need to create your own pager UI).

Syntax:

public bool HidePagerItems {get; set;}

Default value:

false

Example:

@Html.Pager(Model,new PagerOptions{HidePagerItems=true})

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

HtmlPager:

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

AjaxPager:

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