Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1395

Summary: ScrollPager Series property not serialized correctly
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2015-12-15 04:41:43 EST
Using the following code:

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      Line line1 = new Line(tChart1.Chart);
      line1.FillSampleValues(100);

      ScrollPager scroll = new ScrollPager(tChart1.Chart);
      scroll.Series = line1;
    }

    private void button2_Click(object sender, EventArgs e)
    {
      MemoryStream stream = new MemoryStream();

      tChart1.Export.Template.Save(stream);
      stream.Position = 0;
      tChart2.Import.Template.Load(stream);

      ScrollPager tool = tChart2.Tools[0] as ScrollPager;
      MessageBox.Show((tool.Series == null).ToString());

      tool.Series = tChart2[0];
    }

we can see that although the Series property is not null, it has to be reassigned for the Chart to render accurately.