Telerik blogs

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

  1. Create Global.asax file
  2. Describe how the route will be rewritten

    Global.asax routing settings
  3. Set 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.
  4. Set RouteName="RadDataPagerRoutingExample" and RoutePageIndexParameterName="dataPager" depending on the settings in Global.asax.
  5. 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.

Sample project


About the Author

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.

Related Posts

Comments

Comments are disabled in preview mode.