I have an application that uses ASP.NET AJAX Toolkit's tab control to display several panels on a web page, some of which contain steema charts. I need to capture the X,Y coordinates of a mouse click on a given chart, embedded in a tab panel. However, it appears that once added to the toolkit's TabContaner Control, the mouse clicks from the steema chart aren't being recognized. I have other controls - such as asp.net datagrids, for which this is not an issue.
I have a sample project I can send you, if that would help.
Below is the apsx page code:
thanks,
Rich
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZoomUpdatePanel.aspx.cs" Inherits="ZoomUpdatePanel" %>
<%@ Register Assembly="TeeChart" Namespace="Steema.TeeChart.Web" TagPrefix="tchart" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="700px"
Width="1079px" BorderStyle="Outset" BorderWidth="2px">
<cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>
Home
</HeaderTemplate>
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<tchart:WebChart ID="WebChart1" runat="server" AutoPostback="False" Config="AAEAAAD/////AQAAAAAAAAAMAgAAAFJUZWVDaGFydCwgVmVyc2lvbj0zLjAuMzA2NS4xNjA5OSwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj05YzgxMjYyNzZjNzdiZGI3BQEAAAAVU3RlZW1hLlRlZUNoYXJ0LkNoYXJ0AQAAAA8uQXNwZWN0LlpPZmZzZXQABgIAAAAAAAAAAAAAAAs="
GetChartFile="GetChart.aspx" Height="300px" TempChart="Session" Width="400px" OnClickBackground="WebChart1_ClickBackground" OnAfterDraw="WebChart1_AfterDraw" />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
</form>
</body>
</html>
Mouse clicks lost when using AjaxToolkit TabControl
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi richheim,
Yes please, send us the example project. You can post it at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Yes please, send us the example project. You can post it at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Files sent
I've uploaded the files.
look for "from _stemma.zip".
unzip and open as a web site in VS 2005. Use ZoomUpdatePanel.aspx as your start page.
thanks,
Rich
look for "from _stemma.zip".
unzip and open as a web site in VS 2005. Use ZoomUpdatePanel.aspx as your start page.
thanks,
Rich
Hello Rich,
Just to check that we're looking for the correct issue. The ZoomUpdatePanel.aspx Chart in your project responds to correctly to zooms and reports the correct click co-ordinates on the Chart (tested in Internet Explorer and Firefox). Are you looking to use the click co-ordinates in an additional way? Is there another test we should run?
With thanks.
Regards,
Marc Meumann
Just to check that we're looking for the correct issue. The ZoomUpdatePanel.aspx Chart in your project responds to correctly to zooms and reports the correct click co-ordinates on the Chart (tested in Internet Explorer and Firefox). Are you looking to use the click co-ordinates in an additional way? Is there another test we should run?
With thanks.
Regards,
Marc Meumann
Steema Support
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Rich,
Thanks for the information. Your project has been tested to work fine here using our current TeeChart for .NET v3 sources that we expect to include in the next maintenance release by the end of this week. We have reviewed WebChart's sources and we have noticed a significant change affecting chart naming tag which would also fix this issue.
Thanks for the information. Your project has been tested to work fine here using our current TeeChart for .NET v3 sources that we expect to include in the next maintenance release by the end of this week. We have reviewed WebChart's sources and we have noticed a significant change affecting chart naming tag which would also fix this issue.
Best Regards,
Narcís Calvet / 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 |
It Works!!
Thanks guys. I've downloaded and installed the July 2nd release and all seems to be working well.
Rich
Rich