Fork me on GitHub

PagerOptions.PrevPageText property

Gets or sets the text displayed for the previous page pager item.

Syntax:

public string PrevPageText {get; set;}

Default value:

Prev

Example:

@Html.Pager(Model,new PagerOptions{PrevPageText="<"})

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

HtmlPager:

@Html.Pager(Model).Options(o=>o.SetPrevPageText("<"))

AjaxPager:

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