I just upgraded to the newest (2008.1) version of Prometheus, and a meta-data driven pie chart that was working fine with the 2007.3 build is now throwing a NullException error. Have there been any significant changes to the Chart controls, i.e., any new required properties or properties that may have different limiting values? As I mentioned, it was working as expected in the last build and, using the same environment and properties/values for the chart, it choked. There is also a line chart, bar chart, and grid controls, all metadata-driven, on the same page that still work correctly (and pull the properties and values from the same database meta tables) Please advise...
Thanks
Thanks
5 Answers, 1 is accepted
0
Jim
Top achievements
Rank 2
answered on 03 Apr 2008, 09:00 PM
In unstalled the 2008.01 version and reinstalled the 2007.3 version, and the pie chart works without issue. Since we have purchased the new release and are merely waiting for it to leave the factory, I will need to make this work.
I've included the EventViewer log - looks like I misspoke earlier - the error is a NullReferenceException...my apologies.
Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Charting.ChartAxisItem.GetBound()
at Telerik.Charting.ChartAxisItem.GetHeight()
at Telerik.Charting.ChartAxisItem.GetHeight(Boolean withTopMargin, Boolean withBottomMargin)
at Telerik.Charting.ChartAxisItemsCollection.GetHeight()
at Telerik.Charting.ChartXAxis.get_ItemsBound()
at Telerik.Charting.ChartAxis.CalculateAxisLabel(RenderEngine renderEngine)
at Telerik.Charting.ChartXAxis.Calculate(RenderEngine renderEngine)
at Telerik.Charting.RenderEngine.CalculateElementsForRender(IContainer element)
at Telerik.Charting.RenderEngine.CalculateElementsForRender()
at Telerik.Charting.Chart.CalculateChart()
at Telerik.Web.UI.RadChart.LoadViewState(Object savedState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByID(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Category: Default
Priority: 2
EventId: 100
Severity: Error
I've included the EventViewer log - looks like I misspoke earlier - the error is a NullReferenceException...my apologies.
Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Charting.ChartAxisItem.GetBound()
at Telerik.Charting.ChartAxisItem.GetHeight()
at Telerik.Charting.ChartAxisItem.GetHeight(Boolean withTopMargin, Boolean withBottomMargin)
at Telerik.Charting.ChartAxisItemsCollection.GetHeight()
at Telerik.Charting.ChartXAxis.get_ItemsBound()
at Telerik.Charting.ChartAxis.CalculateAxisLabel(RenderEngine renderEngine)
at Telerik.Charting.ChartXAxis.Calculate(RenderEngine renderEngine)
at Telerik.Charting.RenderEngine.CalculateElementsForRender(IContainer element)
at Telerik.Charting.RenderEngine.CalculateElementsForRender()
at Telerik.Charting.Chart.CalculateChart()
at Telerik.Web.UI.RadChart.LoadViewState(Object savedState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByID(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Category: Default
Priority: 2
EventId: 100
Severity: Error
0
Hi Jim,
Could you send us the pie chart declaration as we are unable to reproduce the problem in our local tests.
Looking forward to your reply.
Best wishes,
Manuel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Could you send us the pie chart declaration as we are unable to reproduce the problem in our local tests.
Looking forward to your reply.
Best wishes,
Manuel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Jim
Top achievements
Rank 2
answered on 08 Apr 2008, 03:40 PM
My apologies for the late follow up. it seems not to be a problem with the PieChart, but with any multi-axis charts (bar, line,etc). I will continue looking into the matter and determine if it a coding issue on our side before posting anything further. Thanks.
0
Accepted
Jim
Top achievements
Rank 1
answered on 10 Apr 2008, 11:20 PM
I am having the exact same problem, but my only occurs when I do a postback. This is true when I am not even dealing with the RadChart, but with other usercontrols on the same page. I figured out that this has to do with setting AutoLayout to true. As soon as I removed that, it worked without any problems.
0
Jim
Top achievements
Rank 2
answered on 11 Apr 2008, 01:50 PM
Thanks, Jim. We determined that here as well, but I forgot to post the fix. It seems that this issue has been fixed in the release version coming out next week according to Telerik.
Have a good day, and thanks for the response.
Have a good day, and thanks for the response.