Page 1 of 1
Hyperlink chart header (title)
Posted: Mon Jan 09, 2006 4:28 pm
by 9638380
Is it possible to create a hyperlink out of the chart header/title?
Posted: Tue Jan 10, 2006 11:30 am
by narcis
Hi Dan,
In which kind of application are you trying to achieve that, WinForms or WebForms application?
Thanks in advance.
Posted: Tue Jan 10, 2006 3:09 pm
by 9638380
Web forms
Posted: Wed Jan 11, 2006 11:55 am
by narcis
Hi Dan,
Yes, you can set AutoPostback to true and use webchart's OnClickTitle event as shown here:
Code: Select all
private void Page_Load(object sender, System.EventArgs e)
{
WebChart1.Chart[0].FillSampleValues();
WebChart1.AutoPostback=true;
}
private void WebChart1_ClickTitle(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("http://www.teechart.net");
}
Posted: Wed Jan 11, 2006 2:50 pm
by 9638380
I tried the code which generated an exception (below). Any idea what is wrong?
Thanks,
Dan
Server Error in '/Lakes' Application.
--------------------------------------------------------------------------------
Invalid parameter used.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid parameter used.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Invalid parameter used.]
System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height, PixelFormat pixelformat)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height)
Steema.TeeChart.Web.WebChart.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
Posted: Fri Jan 13, 2006 8:42 am
by narcis
Hi Dan,
Could you please send us an small example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://
www.steema.net/steema.public.attachments[/url] newsgroup.
Posted: Tue Jan 17, 2006 5:19 pm
by 9638380
The newsgroup does not work for me. I will email the code sample
Posted: Wed Jan 18, 2006 9:35 am
by narcis
Hi Dan,
I've received the application and I can run it on my machine. However, I haven't been able to reproduce the problem you reported. Could you please tell me the exact steps I should follow to reproduce it here?
Thanks in advance.