in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Diagram property null reference exception

Last post 11/26/2007 7:25 PM by John Abbatico. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 7/26/2007 7:50 AM

    Diagram property null reference exception

    Hi, I'm trying to create a Web Part to show Charts using the XtraCharts component.

    When I try to access the Diagram Property, to set the Label.Staggered property to true, I get a null reference exception.

    How do I access the Diagram Property, how do I set the Staggered property to true?

    --

    Christian

  • 7/27/2007 4:18 AM In reply to

    Re: Diagram property null reference exception

    Hello Christian,

    I guess that the cause of this issue is that you first need to add at least one series to the chart, since the Diagram type is dependant on the series view of currently visible series. So, you first need to create series, add them to the chart, and only after these steps are done you're able to edit a diagram. For example, see the code snippet in the following document: http://devexpress.com/Help/Content.aspx?help=XtraCharts&document=CustomDocument2972.htm

    Does this help you?

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 7/27/2007 4:34 AM In reply to

    Re: Diagram property null reference exception

    That link you give there is acutally how I found out where I needed to set settings for the Labels.

    I have series, with points, added to the chart, so that does not seem to be the problem, however, the link shows how to do it using Windows Forms, what I'm doing is creating a Web Part using the WebChartControl. Maybe there is some issues there.

    --

    Christian

  • 7/27/2007 7:03 AM In reply to

    Re: Diagram property null reference exception

    Hello Christian,

    I believe that the best way for you is to send your sample project to our Support Team (simply attach it to http://www.devexpress.com/issue=CQ60316), so that we can investigate what may be causing the issue. This would be greatly appreciated!

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 11/26/2007 7:25 PM In reply to

    Re: Diagram property null reference exception

     Hi Christian!

     I've seen your post and I'm almost in the same situation. The chart I'm trying to display in the WebPart is not rendered.

    I manged to solve the null reference by recreating the control inside the RenderContents() function.

    Can you give me a hint on rendering?
     

Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED