Closed saifalmaluk closed 4 years ago
Same issue here, I'm routing to a specific page (non-index), but SortableHeaderFor provides links to the index...
Fixed it myself. You can set the Action to route to:
list.Action = "<PageName>";
where list
is an instance of PagingList
We have created mvc page List.cshtml
A table with clickable header is like below,
@Html.SortableHeaderFor(model => model.Title, this.Model)
The issue is when we click on header, it redirecting to index.cshtml page instead of list.cshtml.