
What I ended up doing as a workaround is created an ASPX page in my dnn module that will handle some querystring values and then dynamically creates a RadChart control, populates the series and all that jazz, and then calls RadChart.Save(this.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg) (after appropriately clearing the headers and response stream and setting the content type to "image/jpeg"). The processor page is linked to an asp:Image control on the dnn module itself as the image url so it processes and shows up dandy.
What I'm wondering is if this would be "correct" usage for such a scenario or if there is a "better" way to get it working with DNN.
14 Answers, 1 is accepted
RadChart can work in DNN and you would not need to save it and use the image instead.
Can you please, make sure that you have the correct HttpHandler declaration in your web.config. Telerik.Web.UI assembly should be added with its fully qualified name. I can suggest that you remove the chart HttpHandler from web.config ( "<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=....") and add it again using the link in the smart tag in Visual Studio.
Best wishes,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

I get radchart not display alert box and page goes into continuous loop to refresh, open alert, refresh, open alert... until I press cancel.
This is a time sucker... anyone have a solution? I've removed telerik controls, re-installed. Removed dlls from project and added fresh ones, configured web.config....
no joy

Any updates on this!!!!! Has anybody got the DNN Charting working??????
Help Please!!!!!

See this thread
Alaska DotNetNuke Consulting is available. I spent a few hours figuring this out. The answer is below.
http://www.nwds-ak.com/WebResources/DotNetNuke/RadChartDNNNotDisplaying/tabid/723/Default.aspx
Contact me directly if you wish, from the above site's contact info.

Thanks for ur help i tried dat. then m getting error!!
The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
May b my path is wrong!!
How to get exact location any Idea!!!!
Looking at the other forum post you have placed, I can see that your Httphandler registration is not correct. Note, that the error message you get has this: Version=2008.1.515.20 and your registration has this: Version=2008.2.723.20. It seems you are using Telerik.Web.UI v 2008.1.515.20 -- please, make sure the http handler registration is correct.
Best regards,
Ves
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

i replaced my dll with new one. and i register by smart tag. And i changed my chart property HttpHandler="../../ChartImage.axd". but now it shows alert only onece in load if i click ok it shows chart image and working perfect. and if i click cancel then it doesn't work.
Any solution for this????

In the httpHandlers section:
<!-- Telerik Charting support -->
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI,
Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
The version is correct.
As per this forum I tried:
<!-- Telerik Charting support -->
<add path=",,/,,/ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI,
Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
but then it doesn't think the handler has been added to the web.config.
What else can I try?
@ Bruce -- you should not be changing the path in the web.config file like this, we belive Farooq meant he changed the RadChart.HttpHandlerUrl property.
Anyway, we believe the problem is most likely triggered by the "Use Friendly Urls" feature of DNN. In this scenario you can use the RadChart.HttpHandlerUrl property to manually set the path of the ChartHttpHandler that is required for the correct operation of the chart control. We would suggest you to set it from code behind like this and the chart should work as expected:
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd") |
Greetings,
Manuel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Telerik team
Now it works for me!!!!!!!!!!!!

that worked for me!
I appreciate the help!
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd")

Hi There,
I have licensed telerik controls (Telerik.Web.UI version 2009.1.527.20). I am trying to parepare chart (StackedBar100)
using telerik but its not working properly. When I check this at on devlopement machine its working but when I check this at testing server (where we publish our build) it shows following error:
Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?
I tried to debug code at the testing server but again it works fine when I debug that. The problem is only with the build. No I have to do something extra on the testing server so that it can work fine.
I have added below lines in web.config file under httpHandler:
<
add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
I tried "chartCompleteReports.HttpHandlerUrl = ResolveUrl("ChartImage.axd"); " also in the page_load & in method where I have written the code for binding the chart, but still its not working.
Just to let you know that we are working on web application on MS Visual Studio 2008 with dotnet framework 3.5 and language C#.net with asp.net using MS SQL SERVER 2008.
Please let me know in case of any issue/concern. I will appreicate if you will reply ASAP.
Thanks!

If your testing server is running Windows Vista or higher, the handler declaration you pasted will not work (for IIS7 you need to add the handler declaration in the system.webServer section of the web.config.
You can find more information on registering the handler for Windows Vista here: http://www.telerik.com/community/forums/aspnet-ajax/chart/red-x-with-radchart.aspx.
Hope this helps,
Bart.

Thanks a ton for your help. It workd perfectly fine.
Many Thanks!
BB Agrawal