Page 1 of 1

ScrollPager not working properly

Posted: Thu Jun 25, 2015 2:05 pm
by 15671530
Hi,

I have in VS designer a TChart component placed on a form and activated the ScrollPager like this:
Snap1.png
Snap1.png (38.45 KiB) Viewed 5797 times
When I run my sample application, I get this window:
Snap2.png
Snap2.png (10.93 KiB) Viewed 5791 times
The ScrollPager is positioned to minimum and maximum 0, which is acceptable because no data is available for Series.

Now when I load data pressing the Data button (= line1.FillSampleValues(100);) I get this:
Snap3.png
Snap3.png (35.26 KiB) Viewed 5793 times
The ScrollPager is still positioned to 0 and I can't move the minimum or maximum.
What's wrong? Do I need to use a 'redraw' and where can I find this?

Re: ScrollPager not working properly

Posted: Fri Jun 26, 2015 12:39 pm
by Christopher
The ScrollPager is still positioned to 0 and I can't move the minimum or maximum.
What's wrong? Do I need to use a 'redraw' and where can I find this?
The ScrollPager tool needs to be reassigned the series once this has had its data changed, i.e.

Code: Select all

    private void button4_Click(object sender, EventArgs e)
    {
      series1.FillSampleValues();
      tool1.Series = series1;
    }

Re: ScrollPager not working properly

Posted: Fri Jun 26, 2015 2:10 pm
by 15671530
Like always, a simple answer :).
Thanks Christoper.