With Q2 2010 release of RadControls for ASP.NET AJAX we introduce built-in support for ASP.NET routing for RadGrid and RadDataPager controls. By setting a few properties you can enable nice SEO friendly urls. Below are the steps that you need to perform to enable routing for RadDataPager in ASP.NET 4.0
- Create Global.asax file
- Describe how the route will be rewritten
AllowRouting="true" for RadDataPager. Have in mind that routing can be enabled only in context of SEO paging, i.e.
AllowSEOPaging must be set to “true” to enable routing.
RoutePageIndexParameterName="dataPager" depending on the settings in Global.asax.
- Voila! You have implemented routing in 4 simple steps.
In addition to the fact that RadDataPager will page controls like RadListView, you get paging + routing for MS ListView for free.