Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Server.v4.4 Assembly / Xceed.Chart.Server Namespace / ChartServerControl Class / SaveChartState Property
Example


In This Topic
    SaveChartState Property
    In This Topic
    Whether or not the control should save its state on the server across roundtrips.
    Syntax
    'Declaration
     
    <CategoryAttribute("Xceed Chart for ASP.NET")>
    <DescriptionAttribute("Whether or not the control should save its state on the server across roundtrips.")>
    Public Property SaveChartState As Boolean
    'Usage
     
    Dim instance As ChartServerControl
    Dim value As Boolean
     
    instance.SaveChartState = value
     
    value = instance.SaveChartState
    [Category("Xceed Chart for ASP.NET")]
    [Description("Whether or not the control should save its state on the server across roundtrips.")]
    public bool SaveChartState {get; set;}
    Remarks
    By default the control will not save the chart state. If you enable this property the control state will be serialized in the Temp directory on the server and restored the next time the user request the page. Note that this state might expire and be deleted by the control. The expire time span is same for state and image temporary files.
    Example
    The following code makes the server control state persistent:
    ChartServerControl.SaveChartState = True
    ChartServerControl.SaveChartState = true;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also