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

Error when ScrollMode is Enabled for the Chart

3 Answers 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
DRG
Top achievements
Rank 1
DRG asked on 20 Jun 2013, 06:51 PM
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 

3 Answers, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 25 Jun 2013, 03:00 PM
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.
0
Marek
Top achievements
Rank 1
answered on 23 Jul 2013, 05:58 AM
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" />
0
Petar Kirov
Telerik team
answered on 25 Jul 2013, 02:18 PM
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.
Tags
Chart (Obsolete)
Asked by
DRG
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Marek
Top achievements
Rank 1
Share this question
or