Error when ScrollMode is Enabled for the Chart

Thread is closed for posting
4 posts, 0 answers
  1. DRG
    DRG avatar
    13 posts
    Member since:
    Jun 2013

    Posted 20 Jun 2013 Link to this post

    Works fine when scrolling is not enabled, but throwing the below exception when enabled.
     
     telchart.ClientSettings.ScrollMode = ChartClientScrollMode.XOnly
     telchart.ClientSettings.EnableZoom = True


    Have seen this error reported before in the forum, but there is no proper answer on why ? except attaching sample projects that work. Tried adding a series at the end with Line Type but no luck.

     telchart.DataBind()
     telchart.Series.Add(New ChartSeries("Lines", ChartSeriesType.Line))


    Exception Detail - 

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Web.ScriptObjectBuilder.RegisterCssReferences(Control control) +254
       Telerik.Web.UI.RadChart.OnPreRender(EventArgs e) +64
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3643; ASP.NET Version:2.0.50727.3634 

  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 25 Jun 2013 Link to this post

    Hi Dinesh,

    I am afraid that (as you have already found out) we do not have sufficient information to reproduce the problem on our side. In order to help you, we will need to observe the problem locally so we can investigate it. It would be best if you could provide a runable project.

    We are sorry for the inconvenience.

    Regards,
    Petar Kirov
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marek
    Marek avatar
    1 posts
    Member since:
    Nov 2011

    Posted 23 Jul 2013 Link to this post

    I have similar problem. My RadChart control is inside RadMultiPage control which is template for detail item in RadGrid control. Data for chart are binded from code behind. Everything works fine until I add tag.
    <ClientSettings ScrollMode="Both" EnableZoom="true" />
  5. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 25 Jul 2013 Link to this post

    Hi Marek,

    Could you please open a formal support ticket and attach a small project that reproduces the exception, so we can have a look?

    Regards,
    Petar Kirov
    Telerik
    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 the blog feed now.
Back to Top