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
AllowSEOPaging="true"
and 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. RouteName="RadDataPagerRoutingExample"
and RoutePageIndexParameterName="dataPager"
depending on the settings in Global.asax. In addition to the fact that RadDataPager will page controls like RadListView, you get paging + routing for MS ListView for free.
Iana Tsolova is Product Manager at Telerik’s DevTools division. She joined the company back in the beginning of 2008 as a Support Officer and has since occupied various positions at Telerik, including Senior Support Officer, Team Lead at one of the ASP.NET AJAX teams and Technical Support Director. Iana’s main interests are web development, reading articles related to geography, wild nature and latest renewable energy technologies.