Page 1 of 1

WebChart with Zoom postbacking when a URL is clicked.

Posted: Thu Jun 26, 2008 10:56 am
by 13048857
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.

Posted: Fri Jun 27, 2008 9:07 am
by Marc
Hello,

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

Regards,
Marc Meumann

Posted: Fri Jun 27, 2008 11:31 am
by Marc
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

Posted: Fri Jun 27, 2008 12:16 pm
by 13048857
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?

Posted: Fri Jun 27, 2008 2:06 pm
by Marc
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

Posted: Fri Jun 27, 2008 2:25 pm
by 13048857
Yeah !! It seems to be working !! thanks !!