Telerik: RadChart working in DotNetNuke

In order to get the RadChart charting controls to work correctly in DotNetNuke you must first take into account that DNN rewrites all URLs to what are called ‘Pretty URLs’. Because of this the RadChart has a hard time locating the URL of the HttpHandler which creates the chart images.
To fix this you need to help the RadChart instance out by telling it where the HttpHandler URL is. This can be done by setting the HttpHandler URL through the RadChart’s HttpHandlerUrl property in the Page Load event of your DNN module control as shown below.

myRadChartInstance.HttpHandlerUrl = ResolveUrl("ChartImage.axd") ;

			

Published by

Tim Clark

Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director. Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)

2 thoughts on “Telerik: RadChart working in DotNetNuke

  1. Hi schleichermann,

    Thank you very very much for putting this in your blog! I've spend already 2 hours in figuring out why it was'nt working correct and i assumed it had to do with the axd.

    Just tried your suggestion and it works perfect!!

    djebe

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s