PageScroller after open ten file doesn't run

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

PageScroller after open ten file doesn't run

Post by acastro » Fri Mar 14, 2014 9:46 am

I create this chart with pagescroller and it runs well, I save it, but when I open it I cannot scroll the pagescroller. Is any property unabled after open?
http://193.145.251.126/pnp/files/lfdHRM ... gation.ten

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: PageScroller after open ten file doesn't run

Post by Christopher » Fri Mar 14, 2014 3:00 pm

Yes, I'm afraid that at the moment you will need a couple of extra lines:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Import.Template.Load(@"C:\tmp\testnavigation.ten");
      ((ScrollPager)tChart1.Tools[0]).SubChartTChart.Tools.RemoveAt(0);
      ((ScrollPager)tChart1.Tools[0]).SubChartTool.Charts[0].ITool = ((ScrollPager)tChart1.Tools[0]).SubChartTool;
    }
this will be fixed in the next maintenance release.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply