Mouse clicks lost when using AjaxToolkit TabControl

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

Mouse clicks lost when using AjaxToolkit TabControl

Post by richheim » Mon Jun 30, 2008 5:49 pm

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>

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 01, 2008 8:52 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

Files sent

Post by richheim » Tue Jul 01, 2008 1:12 pm

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

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

Post by Marc » Tue Jul 01, 2008 4:20 pm

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
Steema Support

richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

Post by richheim » Tue Jul 01, 2008 7:10 pm

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

richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

Post by richheim » Tue Jul 01, 2008 7:58 pm

I guess I should say, more explicitly, that the Webchat1_ClickBackground method isn't being called.


thanks again,
rich

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 02, 2008 7:25 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

Post by richheim » Wed Jul 02, 2008 2:00 pm

Great!

I'll be looking for this realease.


Rich

richheim
Newbie
Newbie
Posts: 58
Joined: Tue Sep 18, 2007 12:00 am

It Works!!

Post by richheim » Mon Jul 07, 2008 5:42 pm

Thanks guys. I've downloaded and installed the July 2nd release and all seems to be working well.


Rich

Post Reply