Declined
Last Updated: 10 Sep 2014 12:14 by ADMIN
sitefinitysteve
Created on: 12 Apr 2013 13:44
Category: DataPager
Type: Feature Request
2
Modify datapager base url (more control)
I would like more control over the data pagers rendered page numbers.

It's very simple thing I need... 
http://<currenturlwithlistview>/page/<number>

...this isn't a route handled by MVC\ASP or anything where I can give it an SEO name or route name or whatever.  It's a sitefinity route which uses another mechanism the datapager doesn't understand.

AND THAT'S FINE! :)  ...just give me the ability to define the route "path" I guess like even something as simple as a String.Format..."RouteFormat" property or something

RouteFormat="/page/{0}"

Steve
1 comment
ADMIN
Radoslav
Posted on: 10 Sep 2014 12:14
If you use routing with the DataPager you can achieve the desired functionality. With properly constructed rout like following the pager will work as expected:
private void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
    routes.MapPageRoute("SeoRouting", "page/{pager}", "~/DataPagerRouting.aspx", true, new System.Web.Routing.RouteValueDictionary{ { "pager", "1" } });
}
More information you can find here:
http://www.telerik.com/help/aspnet-ajax/datapager-seo-paging-with-routing.html