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 - ScrollPager Series property not serialized correctly
Summary: ScrollPager Series property not serialized correctly
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 04:41 EST by christopher ireland
Modified: 2016-09-29 06:03 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.