Unknown server tag 'radC:ChartSeries'.

Thread is closed for posting
5 posts, 0 answers
  1. pmwhelan
    pmwhelan avatar
    104 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2009 Link to this post

    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

     

  2. pmwhelan
    pmwhelan avatar
    104 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2009 Link to this post

    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

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 13 Oct 2009 Link to this post

    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.
  5. Rishi
    Rishi avatar
    11 posts
    Member since:
    Mar 2012

    Posted 20 Mar 2012 Link to this post

    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!    

     

  6. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 20 Mar 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017