Page 1 of 1

Mouse clicks lost when using AjaxToolkit TabControl

Posted: Mon Jun 30, 2008 5:49 pm
by 14046718
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>
&nbsp;</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>

Posted: Tue Jul 01, 2008 8:52 am
by narcis
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.

Files sent

Posted: Tue Jul 01, 2008 1:12 pm
by 14046718
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

Posted: Tue Jul 01, 2008 4:20 pm
by Marc
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

Posted: Tue Jul 01, 2008 7:10 pm
by 14046718
No - the ZoomUpdatePanel.aspx responds to zoom, but not to mouse clicks. At least not for me.
It was respondiong to mouse clicks before I added the tab container. It
stopped once the tab container was added.

Rich

Posted: Tue Jul 01, 2008 7:58 pm
by 14046718
I guess I should say, more explicitly, that the Webchat1_ClickBackground method isn't being called.


thanks again,
rich

Posted: Wed Jul 02, 2008 7:25 am
by narcis
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.

Posted: Wed Jul 02, 2008 2:00 pm
by 14046718
Great!

I'll be looking for this realease.


Rich

It Works!!

Posted: Mon Jul 07, 2008 5:42 pm
by 14046718
Thanks guys. I've downloaded and installed the July 2nd release and all seems to be working well.


Rich