Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > Charting in DotNetNuke

Not answered Charting in DotNetNuke

Feed from this thread
  • Fooberichu avatar

    Posted on Feb 26, 2008 (permalink)

    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.

    Reply

  • Ves Ves admin's avatar

    Posted on Feb 29, 2008 (permalink)

    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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.
  • Posted on Nov 25, 2008 (permalink)

    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

    Reply

  • farooq avatar

    Posted on Nov 26, 2008 (permalink)

    hi!!!!

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

    Help Please!!!!!

    Reply

  • Posted on Nov 26, 2008 (permalink)

    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.

    Reply

  • farooq avatar

    Posted on Nov 26, 2008 (permalink)

    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!!!!

    Reply

  • Ves Ves admin's avatar

    Posted on Nov 28, 2008 (permalink)

    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.

    Reply

  • farooq avatar

    Posted on Nov 28, 2008 (permalink)

    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????

    Reply

  • ATX avatar

    Posted on Nov 28, 2008 (permalink)

    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?

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Dec 1, 2008 (permalink)

    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.

    Reply

  • farooq avatar

    Posted on Dec 1, 2008 (permalink)

    THanx,
    Telerik team

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

    Reply

  • ATX avatar

    Posted on Dec 2, 2008 (permalink)

    Thank you Manuel,
    that worked for me!
    I appreciate the help!
    RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd"

    Reply

  • BB Agrawal avatar

    Posted on Sep 4, 2009 (permalink)

    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!

    Reply

  • Bartholomeo Rocca Master avatar

    Posted on Sep 9, 2009 (permalink)

    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.

    Reply

  • BB Agrawal avatar

    Posted on Sep 10, 2009 (permalink)

    Hi Bart,
    Thanks a ton for your help. It workd perfectly fine.

    Many Thanks!
    BB Agrawal

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > Charting in DotNetNuke
Related resources for "Charting in DotNetNuke"

ASP.NET Chart Features  |  Documentation  |  DemosStep-by-step Tutorial  ]