WebChart with Zoom postbacking when a URL is clicked.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

WebChart with Zoom postbacking when a URL is clicked.

Post by THoMaSiN » Thu Jun 26, 2008 10:56 am

Hello,

It seems that a Webchart with the zoom tool postbacks everytime I click on the image (even if I'm not trying to zoom). That makes impossible to have an URL loaded (coming from the webchart, of course) in an Iframe inside the same page. Is there a way of having the zoom tool only post back when there is actually an area selected instead of every time the user clicks? Or any other solution to this?

Thanks.

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jun 27, 2008 9:07 am

Hello,

Please check that you don't have the property 'AutoPostback' set to True for the Chart.

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jun 27, 2008 11:31 am

Hello,

We'll re-check this. Looking at the WebChart code, a click was intended so as to be useable if not zooming (as in the zoom example iself included in the TeeChart ASP demo).

I don't follow exactly how that relates to a URL you require? Are you requiring that a click call an URL (based on a value for example)?

With thanks.
Regards,
Marc
Steema Support

THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Post by THoMaSiN » Fri Jun 27, 2008 12:16 pm

Yeah, exactly, I'm trying to be able to load an URL using the example you have for the airlines webchart, but at the same time, I want the user to be able to zoom inside the chart.

The zoom seems to work fine and the URL only works when the URL is loaded in another frame because the zoom causes the page with the chart to postback.

In summary: I'm trying to use the URL mapping (wihch allows the user to browse when they click in the gantt bars) to load an iframe inside the same page where the chart is placed and also the zooming. If I disable the zooming the URL mapping works well, but When I enable it the page post backs with sinple click, therefore the URL cannot be loaded into the iframe.

Any suggestions?

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jun 27, 2008 2:06 pm

Hello,

Yes, it took a moment to remember, an attribute was made available:

Code: Select all

using Steema.TeeChart.Tools.ZoomTool;

ZoomTool zoom1 = new ZoomTool();
WebChart1.Chart.Tools.Add(zoom1);

zoom1.Attributes.NoClickPostback = true;
We've tested it with Hotspots and URLs. It seems to check-out ok.

Regards,
Marc
Steema Support

THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Post by THoMaSiN » Fri Jun 27, 2008 2:25 pm

Yeah !! It seems to be working !! thanks !!

Post Reply