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

Prometheus RadControl - First Experience Not So Easy

11 Answers 428 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Eric Chabot
Top achievements
Rank 1
Eric Chabot asked on 11 Apr 2008, 10:06 PM

I am new to Prometheus, in fact I am new to Telerik.  I was very impress to see the online demo of Prometheus so I downloaded the trial and I am now trying to make this work, more specifically the RadChart component.  After a complete day I have to say that it's still not working.  I am following the instructions found at http://www.telerik.com/help/radcontrols/prometheus/ and I am now at the page "Quick Start: Create a Bar Chart with Simple Static Data"  and I am trying my best to make this work but I must say that it is quite a challenge. I guess I choose to worst component to start with and that the others would probably way easier to get up and running. 

So after doing what is mentioned in the Quick Start page where are the errors I encounter until now

First Error:
"Parser Error Message: Unknown server tag 'telerik:ChartSeries'."

After a bit of research I found that the instruction <%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %> has to be added to the top of the page.   Why is this not done automatically by the wizard or as soon as a chart is drop on the design surface?

Second 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=2007.3.1425.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />"

Ok so I added this to my web.config but again why is this not done automatically?

Third problem:
"Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:
[MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.]
   Telerik.Web.UI.MapAreaBuilder.GenerateImageMap(IContainer container) +0
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +1128
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +9
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558"

 
I read on the forum to put CreateImageMap="false" solve the problem, not sure why but I did it anyway.

Forth Error:
"Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Telerik.Charting.ChartSeriesCollection must have items of type 'Telerik.Charting.ChartSeries'. 'Telerik.Charting.ChartSeries' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Source Error:
Line 34:                     </Items>
Line 35:                 </telerik:ChartSeries>
 Line 36: <Telerik.Charting.ChartSeries Name="Sales">   <-- NOTE: The error is on this line
Line 37: <Appearance Border-Color="Black">
Line 38: <FillStyle MainColor="199, 243, 178" SecondColor="17, 147, 7"></FillStyle>"
 
Ok so now I am stuck, can anyone help me ?
Btw I am using VS 2008, .Net 3.5
 
Thank you,
Eric

11 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 14 Apr 2008, 03:47 PM
Hi Eric,

Onto your questions:
  1. Indeed, RadChart requires two Register directives. They are both added automatically if the chart is put in a page in Design mode. However, putting RadChart in a page in Source mode adds a single  <telerik:RadChart> tag in the page, so it is only one Register directive necessary. At this moment there is nothing in the page, which would require the second register directive.
  2. We will research the possibilities for adding the http handler to web.config automatically. Thanks for this note.
  3. Please, check this forum thread for more details about this error. This will be fixed with the next official release, expected later this week.
  4. Can you send us a page in which this is reproducible? We will investigate it we'll get back to you with our findings. Thanks.

All the best,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eric Chabot
Top achievements
Rank 1
answered on 14 Apr 2008, 04:03 PM
Ves thanks for your help, this is really appreciated.  

Here is my code for last error:
<%@ Page Language="vb" trace="true" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="Charting._Default" %> 
 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Register assembly="Telerik.Charting, Version=1.7.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" namespace="Telerik.Charting" tagprefix="telerik" %> 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Charting</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <div>          
        <telerik:RadChart ID="RadChart1" runat="server" Skin="Gradient">  
            <Series>              
                <Telerik.Charting.ChartSeries Name="Sales">  
                    <appearance border-color="Black">  
                        <fillstyle maincolor="199, 243, 178" secondcolor="17, 147, 7"></fillstyle> 
                        <textappearance textproperties-color="Black"></textappearance> 
                    </appearance> 
                    <Items> 
                        <telerik.charting.chartseriesitem name="Item 1" yvalue="10000">  
                            <label> 
                                <textblock text="Beverages"></textblock> 
                            </label> 
                        </telerik.charting.chartseriesitem> 
                        <telerik.charting.chartseriesitem name="Item 2" yvalue="7500">  
                            <label> 
                                <textblock text="Product"></textblock> 
                            </label> 
                        </telerik.charting.chartseriesitem> 
                            <telerik.charting.chartseriesitem name="Item 3" yvalue="9000">  
                            <label> 
                                <textblock text="Poultry"></textblock> 
                            </label> 
                        </telerik.charting.chartseriesitem> 
                            <telerik.charting.chartseriesitem name="Item 4" yvalue="11200">  
                            <label> 
                                <textblock text="Grains"></textblock> 
                            </label> 
                        </telerik.charting.chartseriesitem> 
                    </Items>                                  
                </Telerik.Charting.ChartSeries> 
            </Series> 
            <PlotArea> 
                <XAxis> 
                    <Appearance MajorTick-Color="Black">  
                        <MajorGridLines Color="DimGray" /> 
                        <LabelAppearance Visible="False">  
                        </LabelAppearance> 
                        <TextAppearance TextProperties-Color="Black">  
                        </TextAppearance> 
                    </Appearance> 
                    <AxisLabel> 
                        <TextBlock Text="Product Categories">  
                            <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                            </Appearance> 
                        </TextBlock> 
                    </AxisLabel> 
                </XAxis> 
                <YAxis> 
                    <Appearance> 
                        <MajorGridLines Color="Black" /> 
                    </Appearance> 
                    <AxisLabel> 
                        <TextBlock> 
                            <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                            </Appearance> 
                        </TextBlock> 
                    </AxisLabel> 
                </YAxis> 
                <YAxis2> 
                    <AxisLabel> 
                        <TextBlock> 
                            <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                            </Appearance> 
                        </TextBlock> 
                    </AxisLabel> 
                </YAxis2> 
                <Appearance Border-Color="94, 94, 93" Corners="Round, Round, Round, Round, 6"   
                    Dimensions-Margins="18%, 22%, 12%, 10%">  
                    <FillStyle MainColor="65, 201, 254" SecondColor="0, 107, 186">  
                    </FillStyle> 
                </Appearance> 
            </PlotArea> 
            <Appearance Border-Color="117, 117, 117">  
                <FillStyle FillType="Gradient" MainColor="244, 244, 234"   
                    SecondColor="167, 172, 137">  
                </FillStyle> 
            </Appearance> 
            <ChartTitle> 
                <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3"   
                    Dimensions-Margins="4%, 10px, 14px, 0%" Position-AlignedPosition="Top">  
                    <FillStyle MainColor="177, 183, 144">  
                    </FillStyle> 
                </Appearance> 
                <TextBlock Text="my title">  
                </TextBlock> 
            </ChartTitle> 
            <Legend Visible="False">  
                <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3"   
                    Dimensions-Margins="18%, 1%, 1px, 1px" Visible="False">  
                    <FillStyle MainColor="177, 183, 144">  
                    </FillStyle> 
                </Appearance> 
            </Legend> 
        </telerik:RadChart> 
      
    </div> 
    </form> 
</body> 
</html> 
 

I will be waiting for your reply, Thanks again
Eric

0
Eric Chabot
Top achievements
Rank 1
answered on 14 Apr 2008, 06:43 PM

This is a bit weird,  Ves I just deleted the series part in the source and recreated the collection with the chart taks and now it works, it seems that the code has been written differently this time.  The fist time I had something like "<telerik.charting.chartseriesitem name="Item 1" yvalue="10000">"  and now I have something like "<telerik:ChartSeriesItem Name="Item 1" YValue="10000">"

This is way different, why is this happening?

Also is this normal that when I drag a RadChart in design view sometimes the only thing I see is a missing image icon? I am not using any custom skin but only the default one.  And if I am lucky and I see the chart after draging it on the design view,  later on when I re-open the same file in design view all I see is the icon of the missing image.

Thanks,
Eric

0
Giuseppe
Telerik team
answered on 17 Apr 2008, 03:39 PM
Hi Eric Chabot,

The problem with the messed up tag seems rather odd and definitely this is not desirable behavior -- can you reproduce it every time on a new website, or does it occur only in a specific project? Do you have a Telerik.Charting assembly in the website's /bin folder or only in the GAC? Does removing the Telerik.Charting assembly from the local /bin folder (if at all present) change the situation?

As for the VisualStudio2008 design-time issue -- we are unfortunately still unable to reproduce the problem in our local tests -- do you see a pattern on your end that leads to the broken image, so we can try to reproduce it here and continue with our investigation?

Looking forward to your reply.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 05 Jun 2008, 09:34 PM
I had the exact same problems described in this mail thread (both the weird tag behavior and the broken images for my charts). 

The problem was because I had the Telerik assemblies in a local bin folder.

i.e.

I had them in the BIN folder at the root ->

/bin/Telerik*.dll

and also in one of my subfolders ->

/foo/bin/Telerik*.dll

After deleting the unneeded /foo/bin folder I'm no longer seeing the broken image for my charts or the strange tag behavior.

Thanks!!

Chris
0
Chris
Top achievements
Rank 1
answered on 05 Jun 2008, 10:53 PM
Correction..   Removing the 2nd tier DLLs fixed my broken image problem, but not the weird tag issue.  This is new behavior that started happening for me since moving from Prometheus to the Q1 binaries.

I have a chart with an existing series:

<

telerik:ChartSeries 

When I go through the Smart Wizard to add another series it adds it in the weird format with all of the Telerik.Charting tags:

<

Telerik.Charting.ChartSeries 

<

FillSettings><ComplexGradient>

<

Telerik.Charting.GradientElement Color="222, 202, 152"></Telerik.Charting.GradientElement>

<

Telerik.Charting.GradientElement

0
Giuseppe
Telerik team
answered on 09 Jun 2008, 08:22 AM
Hello Chris,

We will need some more specific information in order to advise you more accurately -- can you reproduce the problem every time on a new website, or does it occur only in a specific project?

As you have specified, currently you have a Telerik.Charting assembly in the website's /bin folder -- do you have one in the GAC as well, and what version is it? Does removing the Telerik.Charting assembly from the local /bin folder (and referencing the one from the GAC) change the situation?



Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 25 Jul 2008, 03:25 PM
Hey,

I can also replicate this issue, when using the chart wizard (bound to a SqlDataSource with two columns returned) deleting all series and adding a new one, clicking apply inserts

<Telerik.Charting.ChartSeries Name="Hours Worked" dataxcolumn="DayOfYear"  
                dataycolumn="HoursWorked" type="Line"
    <appearance> 
     
    <fillstyle maincolor="213, 247, 255"
    </fillstyle> 
     
    </appearance> 
     
</Telerik.Charting.ChartSeries> 

It may also be completely unrelated but VS 2008 Intellisense does not seem to be working at all for telerik:RadChart -> Series -> anything under it.

Thanks
mitch
0
Giuseppe
Telerik team
answered on 28 Jul 2008, 08:07 AM
Hello John,

The most probable reason you are experiencing these issues is a missing register directive in the ASPX for the Telerik.Charting assembly that contains core charting classes like ChartSeries.

Let me elaborate a bit more -- in order for the RadChart control to work correctly it needs register directives to the Telerik.Web.UI assembly:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 

And to the Telerik.Charting assembly -- if this assembly is referenced from the GAC (by default the installer places it there), the directive should look like this (note you need to supply the correct version you have installed locally if it is not the latest):

<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting, Version=2.0.3.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" %> 

if the Telerik.Charting assembly is referenced from the local /bin folder, the directive should look like this:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %> 


If the controls are installed correctly on your workstation and you drag and drop the chart from the toolbox, it should automatically insert both register directives; otherwise you need to add the second one manually.


Hope this helps.


Best wishes,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John
Top achievements
Rank 1
answered on 28 Jul 2008, 01:56 PM
Thanks for your reply Manuel,

I'm afraid I have already referenced the code like you suggested. To double test it I deleted everything on the page, and dragged a new RadChart component to the page, and bound it to a SqlDataSource. The resulting code was

<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="sqlHoursWorked"
        <Series> 
<Telerik.Charting.ChartSeries Name="DayOfYear" dataycolumn="DayOfYear"></Telerik.Charting.ChartSeries> 
<Telerik.Charting.ChartSeries Name="HoursWorked" dataycolumn="HoursWorked"></Telerik.Charting.ChartSeries> 
</Series> 
    </telerik:RadChart> 

If it helps the page is also bound to a master page.

Thanks
mitch
0
Giuseppe
Telerik team
answered on 29 Jul 2008, 08:26 AM
Hello John,

We still believe the problem is triggered by incorrect reference to the Telerik.Charting assembly in the project that results in the incorrect tag prefix being added and the Intellisense not available.

We would suggest you to remove any Telerik.Charting.dll files (also *.refresh files) from your /bin folder, also remove any references to the Telerik.Charting assembly from your web.config file and then try to drag and drop a control from the toolbox.

Could you also confirm which version of the RadControls bundle have you installed, and could you specify the Telerik.Charting assembly version that resides in the GAC? If the problem persists, could you confirm that creating a brand-new project and dragging a control from the toolbox would result in the same erroneous behavior.


Regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Eric Chabot
Top achievements
Rank 1
Answers by
Ves
Telerik team
Eric Chabot
Top achievements
Rank 1
Giuseppe
Telerik team
Chris
Top achievements
Rank 1
John
Top achievements
Rank 1
Share this question
or