Miguel Posted July 17, 2007 Report Posted July 17, 2007 Hi, Is there a way to totally disable the interactivity when generating the chart as a Flash control? I have already set ImageSetting.Interactivity = False, ImageSettings.ToolTips = ImageToolTipStyle.None and UseCallbacksForEvents = False, but nothing seems to do the trick. The problem is that everytime I click on a data point or bar, or on a legend the page does a postback. Thanks, Miguel
Frank Posted July 17, 2007 Report Posted July 17, 2007 You must be attaching a Click Event to your chart at design-time. Check in the Property Grid.
Miguel Posted July 17, 2007 Author Report Posted July 17, 2007 Thanks for your prompt response. I do not know how the OnClick event is being set, since I am generating the Chart at run time. And because of this I do not have access to the design time properties. Is there an easy way to reset the OnClick property for the whole Chart? What else could be setting this property? The code below seems to eliminate the OnClick event. Is there an easier way to do this? Am I missing anything else? For Each t As ChartFX.WebForms.Axis In baseChart.ChartFX7Object.AxesX t.Link.OnClick = String.Empty NextFor Each t As ChartFX.WebForms.Axis In baseChart.ChartFX7Object.AxesY t.Link.OnClick = String.Empty NextFor Each t As ChartFX.WebForms.SeriesAttributes In baseChart.ChartFX7Object.Series t.Link.OnClick = String.Empty NextThanks again for your help. Miguel
Frank Posted July 17, 2007 Report Posted July 17, 2007 There is no OnClick event by default, so this code shouldn't be necesary at all. Please post a page that reproduces the problem.
Miguel Posted July 17, 2007 Author Report Posted July 17, 2007 This web application was still using the ChartFX Wrapper for backward compatibility with version 6, and I guess this is what was setting the OnClick event. Now I have changed the application to not use the wrapper, and everything works fine. Thanks, Miguel
Recommended Posts
Archived
This topic is now archived and is closed to further replies.