Webchart in aspContent usin Masterpage don't Fire ClickEvent
-
- Newbie
- Posts: 3
- Joined: Tue May 02, 2006 12:00 am
Webchart in aspContent usin Masterpage don't Fire ClickEvent
Hello,
I think there is a bug with webchart when you place it in a page ex:Default2.aspx between 2 tags <asp:Content> and use a masterpage.
ClickBackground events and ClickSeries events are not Fired.
Is there a bug ?
This is critical for me.
Thanks
Ps : See my code below
////////////// Default2.aspx ////////////
<%@ Register Assembly="TeeChart" Namespace="Steema.TeeChart.Web" TagPrefix="tchart" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" MasterPageFile="MasterPage.master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentColumn" Runat="server" >
<form id="form1" runat="server">
<div>
<tchart:WebChart ID="WebChart100" style="Z-INDEX: 102; " runat="server" AutoPostback="True" TempChart="Session" Config="AAEAAAD/////AQAAAAUZWVDaGFydAs=" Height="290px" Width="432px" OnClickBackground="WebChart100_ClickBackground" GetChartFile="GetChart.aspx" OnAfterDraw="WebChart100_AfterDraw" />
</div>
</form>
</asp:Content>
////////////// Default2.aspx.cs ////////////
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void WebChart100_ClickBackground(object sender, ImageClickEventArgs e)
{
///////is not fired!
}
}
////////////////// MasterPage.master /////
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
<div>
<asp:contentplaceholder id="ContentColumn" runat="server"></asp:contentplaceholder>
</div>
</body>
</html>
////////////////// MasterPage.master.cs /////
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
I think there is a bug with webchart when you place it in a page ex:Default2.aspx between 2 tags <asp:Content> and use a masterpage.
ClickBackground events and ClickSeries events are not Fired.
Is there a bug ?
This is critical for me.
Thanks
Ps : See my code below
////////////// Default2.aspx ////////////
<%@ Register Assembly="TeeChart" Namespace="Steema.TeeChart.Web" TagPrefix="tchart" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" MasterPageFile="MasterPage.master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentColumn" Runat="server" >
<form id="form1" runat="server">
<div>
<tchart:WebChart ID="WebChart100" style="Z-INDEX: 102; " runat="server" AutoPostback="True" TempChart="Session" Config="AAEAAAD/////AQAAAAUZWVDaGFydAs=" Height="290px" Width="432px" OnClickBackground="WebChart100_ClickBackground" GetChartFile="GetChart.aspx" OnAfterDraw="WebChart100_AfterDraw" />
</div>
</form>
</asp:Content>
////////////// Default2.aspx.cs ////////////
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void WebChart100_ClickBackground(object sender, ImageClickEventArgs e)
{
///////is not fired!
}
}
////////////////// MasterPage.master /////
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
<div>
<asp:contentplaceholder id="ContentColumn" runat="server"></asp:contentplaceholder>
</div>
</body>
</html>
////////////////// MasterPage.master.cs /////
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
Yes, I've been able to reproduce this defect and have fixed for the maintenance release which will become publicly available at the beginning of September.
Yes, I've been able to reproduce this defect and have fixed for the maintenance release which will become publicly available at the beginning of September.
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tridld,
As Cristopher Ireland said, this was fixed in earlier August, so this should be fixed in all releases since then. Please noticed that some maintenance releases have been posted at the client area since August. Which TeeChart version are you using?
As Cristopher Ireland said, this was fixed in earlier August, so this should be fixed in all releases since then. Please noticed that some maintenance releases have been posted at the client area since August. Which TeeChart version are you using?
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tridld,
Is AutoPostback set to true for you chart?
Is AutoPostback set to true for you chart?
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tridld,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tridld,
We could finally reproduce the problem here. It was initially fixed in TeeChart for .NET v2. Now we have fixed it for v1 as well. We expect to post a new version at the client area before Thursday.
We could finally reproduce the problem here. It was initially fixed in TeeChart for .NET v2. Now we have fixed it for v1 as well. We expect to post a new version at the client area before Thursday.
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 |