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

Chart in DotNetNuke

6 Answers 74 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alex Lawson
Top achievements
Rank 1
Alex Lawson asked on 18 Jun 2009, 03:46 PM
I am in the process of upgrading a fairly large project from the asp.net suite to the ajax suite, and have hit a rather strange bug.

I am attempting to upgrade the chart control and to test the functioanlity I am attempting to display a very simple graph from the demo's page

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %> 
 
<telerik:RadChart runat="server" Width="500px" ID="RadChart2" Skin="LightGreen" > 
     <Series> 
     <telerik:ChartSeries Name="series 1" Type="Bar">  
     <Items> 
     <telerik:ChartSeriesItem YValue="5" /> 
     <telerik:ChartSeriesItem YValue="50" /> 
     <telerik:ChartSeriesItem YValue="500" /> 
     <telerik:ChartSeriesItem YValue="5000" /> 
     </Items> 
     </telerik:ChartSeries> 
     </Series> 
     <PlotArea> 
     <Appearance> 
     </Appearance> 
            <YAxis IsLogarithmic="true">  
            </YAxis> 
     </PlotArea> 
        <ChartTitle> 
            <TextBlock Text="Logarithmic Axis">  
                <Appearance TextProperties-Color="70, 143, 190">  
                </Appearance> 
            </TextBlock> 
        </ChartTitle> 
</telerik:RadChart> 

The problem is when I try to display this in a ascx file I get the 'Error loading radchart image' message box... The strange thing is that when I copy the above code to an aspx file on the same site it works perfectly - which I guess indicates that the configuration is OK.  I have tired switching the DNN 'Supports Partial Rendering?' flag to no avail.

For the moment I will revert to the asp.net control, but if you can help it would be appreciated as I would prefer to only use one suite if possible.

Suite version : Q1 2009
DNN version : 4.6.2

6 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Jun 2009, 07:46 AM
Hi Alex,

A possible reason for this could be the url rewriter in dnn. You can either exclude the ChartImage.axd from the SiteUrls.config file in your web root or use the HttpHandlerUrl property of RadChart. In the latter case -- assign that property the correct path to the chart HttpHandler. You can check this forum post for more details.

Best wishes,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex Lawson
Top achievements
Rank 1
answered on 24 Jun 2009, 02:23 PM
Thanks, the httphandler fix doesn't work - do you have an example of how I can configure the siteurls.config file?  Current contents are:

<?xml version="1.0" encoding="utf-8" ?>
<RewriterConfig>
    <Rules>
        <RewriterRule>
            <LookFor>.*DesktopDefault.aspx(.*)</LookFor>
            <SendTo>~/Default.aspx$1</SendTo>
        </RewriterRule>
        <RewriterRule>
            <LookFor>.*EditModule.aspx(.*)</LookFor>
            <SendTo>~/Default.aspx$1</SendTo>
        </RewriterRule>
        <RewriterRule>
            <LookFor>.*/TabId/(\d+)(.*)/Logoff.aspx</LookFor>
            <SendTo>~/Admin/Security/Logoff.aspx?tabid=$1</SendTo>
        </RewriterRule>
        <RewriterRule>
            <LookFor>.*/TabId/(\d+)(.*)/rss.aspx</LookFor>
            <SendTo>~/rss.aspx?TabId=$1</SendTo>
        </RewriterRule>
        <RewriterRule>
            <LookFor>[^?]*/TabId/(\d+)(.*)</LookFor>
            <SendTo>~/Default.aspx?TabId=$1</SendTo>
        </RewriterRule>
    </Rules>
</RewriterConfig>
0
Ves
Telerik team
answered on 26 Jun 2009, 03:50 PM
Alex,

You can find an example, posted by Tim here.

Regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex Lawson
Top achievements
Rank 1
answered on 30 Jun 2009, 08:56 AM
No joy I'm afraid
0
Ves
Telerik team
answered on 02 Jul 2009, 02:59 PM
Hi Alex,

These two suggestions have proven helpful in this kind of issues and have helped with every request so far. Just in case -- I assume the chart HttpHandler has been correctly registered in your web.config file as you mentioned that the tests with RadChart in .aspx page have been successful. Can you please check the value of the src attribute of the chart image in the page source. Please, check this value with and without the update in siteurls.config file. This issue has been described and discussed in details in the dnn forums, eventually using the same solution in the end -- update in the siteurls.config file.

Sincerely,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex Lawson
Top achievements
Rank 1
answered on 02 Jul 2009, 03:17 PM
Hi Ves,

I have reapplied the siteurl fix and it seems to have worked this time, sorry for any confusion and thanks for your help.

Thanks,
Lee
Tags
Chart (Obsolete)
Asked by
Alex Lawson
Top achievements
Rank 1
Answers by
Ves
Telerik team
Alex Lawson
Top achievements
Rank 1
Share this question
or