You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above pager will ignore the route value provided by AddRouteValue("sortOrder", ViewBag.sortOrder). i.e. the sortOrder will not be exists in the pager link generated.
I change Pager.Options lambda as below, i.e. use RouteValues before AddRouteValues.
o => o.Action("IndexAjax")
.RouteValues(ViewBag.RouteValueDict)
.AddRouteValue("sortOrder", ViewBag.sortOrder)
.DisplayTemplate("Bootstrap3Pagination")
.MaxNrOfPages(10)
.AlwaysAddFirstPageNumber()
Both of the route values provided by RouteValues and AddRouteValue will be exists in the pager link generated.
The text was updated successfully, but these errors were encountered:
I am using MvcPaging 2.1.0 downloaded by nuget
The above pager will ignore the route value provided by AddRouteValue("sortOrder", ViewBag.sortOrder). i.e. the sortOrder will not be exists in the pager link generated.
I change Pager.Options lambda as below, i.e. use RouteValues before AddRouteValues.
Both of the route values provided by RouteValues and AddRouteValue will be exists in the pager link generated.
The text was updated successfully, but these errors were encountered: