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

Unknown server tag 'radC:ChartSeries'.

4 Answers 123 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
pmwhelan
Top achievements
Rank 1
pmwhelan asked on 09 Oct 2009, 12:42 PM
Hi
I have an ASP.NET website which works fine.
One one page I use the radchart and it's all working fine.
at the top of that working page I have ...

<%

@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>

Now I create a new page and I want a radchart on it

I do this ...

 

<%

@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>

and i put in this code ....

 

<

 

radC:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">

 

 

 

 

 

 

 

 

 

</radC:RadChart>

and it says "Chart has no or empty series?"

but if I put in this code ....

 

<

 

radC:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">

 

 

 

 

 

 

 

<Series>

 

 

 

 

 

<radC:ChartSeries Name="1">

 

 

 

 

 

<Items>

 

 

 

 

 

<radC:ChartSeriesItem YValue="1" Name="1"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="2" Name="2"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="3" Name="3"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="4" Name="4"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="5" Name="5"></radC:ChartSeriesItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</radC:ChartSeries>

 

 

 

 

 

<radC:ChartSeries Name="2" YAxisType=Secondary>

 

 

 

 

 

<Items>

 

 

 

 

 

<radC:ChartSeriesItem YValue="10" Name="1"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="20" Name="2"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="30" Name="3"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="40" Name="4"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="50" Name="5"></radC:ChartSeriesItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</radC:ChartSeries>

 

 

</Series>

 

 

 

</radC:RadChart>

It says 
Error 1 Unknown server tag 'radC:ChartSeries'. 

thanks
p

 

4 Answers, 1 is accepted

Sort by
0
pmwhelan
Top achievements
Rank 1
answered on 09 Oct 2009, 02:32 PM
Ok I got it
I had to do

<%

@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>

 

<%

@ Register Assembly="RadChart.Net2" Namespace="Telerik.Charting" TagPrefix="radC" %>

Now If I want to modify the chart in the code behind I get an error

Error 2 Type 'Series' is not defined. 


 

Imports

 

System.Data

 

 

 

Imports

 

Telerik.Charting

 

 

 

Imports

 

Telerik.WebControls

 

 

 

Partial

 

Class Reports

 

 

Inherits System.Web.UI.Page

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

Dim series As New Series("Series 1")

 

 

Dim i As Integer = 0

 

 

While i < 20

 

series.Points.AddY(i)

 

End While

 

 

 

 

 

 

 

End Sub

 

End

 

Class

 

0
Ves
Telerik team
answered on 13 Oct 2009, 06:40 AM
Hi,

The class name is actually ChartSeries, so you need it like this:

Dim series As New ChartSeries("Series 1")

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rishi
Top achievements
Rank 1
answered on 20 Mar 2012, 03:26 PM
Hello,

 Having the error as "Unknown server tag 'telerik:ChartsSeries'"

Using

<%

 

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

 

<%

 

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %>

 

<%

 

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.Design" tagprefix="telerik" %>

 

 

 

<asp:UpdatePanel ID="updCapacityDelay" runat="server" RenderMode="Inline">

 

 

 

 

    <ContentTemplate>

 

 

 

 

        <telerik:RadChart ID="RadCharts" runat="server" Skin="WebBlue" AutoLayout="true" Height="350px" Width="680px" SeriesOrientation="Horizontal">

 

 

 

 

            <Series>

 

 

 

 

                <telerik:ChartsSeries DataYColumn="RIID" Name="CapacityDelay">

 

 

 

                </telerik:ChartsSeries>

 

 

 

            </Series>

 

 

 

        </telerik:RadChart>

 

 

 

    </ContentTemplate>

 

 

 

 

</asp:UpdatePanel>

Please help!    

 

0
Giuseppe
Telerik team
answered on 20 Mar 2012, 05:02 PM
Hello Rishi,

The tag should be telerik:ChartSeries and not telerik:ChartsSeries.


Greetings,
Giuseppe
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
pmwhelan
Top achievements
Rank 1
Answers by
pmwhelan
Top achievements
Rank 1
Ves
Telerik team
Rishi
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or