Charting in DotNetNuke

15 posts, 0 answers
  1. Fooberichu
    Fooberichu avatar
    44 posts
    Member since:
    Oct 2007

    Posted 26 Feb 2008 Link to this post

    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.

  2. Ves
    Admin
    Ves avatar
    2613 posts
    Member since:
    Sep 2012

    Posted 29 Feb 2008 Link to this post

    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

  3. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 25 Nov 2008 Link to this post

    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

  4. farooq
    farooq avatar
    12 posts
    Member since:
    Jan 2008

    Posted 26 Nov 2008 Link to this post

    hi!!!!

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

    Help Please!!!!!

  5. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 26 Nov 2008 Link to this post

    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.

  6. farooq
    farooq avatar
    12 posts
    Member since:
    Jan 2008

    Posted 26 Nov 2008 Link to this post

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

  7. Ves
    Admin
    Ves avatar
    2613 posts
    Member since:
    Sep 2012

    Posted 28 Nov 2008 Link to this post

    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.

  8. farooq
    farooq avatar
    12 posts
    Member since:
    Jan 2008

    Posted 28 Nov 2008 Link to this post

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

  9. ATX
    ATX avatar
    5 posts
    Member since:
    Dec 2007

    Posted 28 Nov 2008 Link to this post

    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?

  10. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts
    Member since:
    Sep 2012

    Posted 01 Dec 2008 Link to this post

    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.

  11. farooq
    farooq avatar
    12 posts
    Member since:
    Jan 2008

    Posted 01 Dec 2008 Link to this post

    THanx,
    Telerik team

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

  12. ATX
    ATX avatar
    5 posts
    Member since:
    Dec 2007

    Posted 02 Dec 2008 Link to this post

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

  13. BB Agrawal
    BB Agrawal avatar
    11 posts
    Member since:
    Sep 2009

    Posted 04 Sep 2009 Link to this post

    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!

  14. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 09 Sep 2009 Link to this post

    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.

  15. BB Agrawal
    BB Agrawal avatar
    11 posts
    Member since:
    Sep 2009

    Posted 10 Sep 2009 Link to this post

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

    Many Thanks!
    BB Agrawal

Back to Top