This is a migrated thread and some comments may be shown as answers.

Charting in DotNetNuke

14 Answers 294 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Fooberichu
Top achievements
Rank 2
Fooberichu asked on 26 Feb 2008, 05:52 PM
I have the need to create some charts and display them in DotNetNuke and found that adding a Chart control to a module throws some errors (at this point, can't remember exactly, but some popups about cannot display image, do you want to view the stack trace). 

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

Sort by
0
Ves
Telerik team
answered on 29 Feb 2008, 12:20 PM
Hi Fooberichu,

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
0
chris
Top achievements
Rank 1
answered on 25 Nov 2008, 10:49 PM
Has anybody got the DNN Charting working?  I have DNN 4.9 with latest Q3 2008 controls.

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
0
farooq
Top achievements
Rank 1
answered on 27 Nov 2008, 02:32 AM
hi!!!!

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

Help Please!!!!!
0
chris
Top achievements
Rank 1
answered on 27 Nov 2008, 02:48 AM
Yes, I have the charts working.

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.
0
farooq
Top achievements
Rank 1
answered on 27 Nov 2008, 03:48 AM
Hi Chris!!!

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!!!!
0
Ves
Telerik team
answered on 28 Nov 2008, 11:49 AM
Hello farooq,

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.
0
farooq
Top achievements
Rank 1
answered on 28 Nov 2008, 12:49 PM
Hi Ves,

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????
0
ATX
Top achievements
Rank 1
answered on 28 Nov 2008, 08:27 PM
I have this issue with DNN 4.9 also.

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?

0
Giuseppe
Telerik team
answered on 01 Dec 2008, 03:30 PM
Hi there,

@ 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.
0
farooq
Top achievements
Rank 1
answered on 02 Dec 2008, 02:06 AM
THanx,
Telerik team

Now it works for me!!!!!!!!!!!!

0
ATX
Top achievements
Rank 1
answered on 02 Dec 2008, 05:04 PM
Thank you Manuel,
that worked for me!
I appreciate the help!
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd"

0
BB Agrawal
Top achievements
Rank 1
answered on 04 Sep 2009, 10:10 AM

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!

0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 09 Sep 2009, 01:42 PM
Hello there,

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.
0
BB Agrawal
Top achievements
Rank 1
answered on 10 Sep 2009, 07:39 AM
Hi Bart,
Thanks a ton for your help. It workd perfectly fine.

Many Thanks!
BB Agrawal
Tags
Chart (Obsolete)
Asked by
Fooberichu
Top achievements
Rank 2
Answers by
Ves
Telerik team
chris
Top achievements
Rank 1
farooq
Top achievements
Rank 1
ATX
Top achievements
Rank 1
Giuseppe
Telerik team
BB Agrawal
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or