Spread ASP.NET 6.0 Product Documentation
Click Event
See Also  Example Send Feedback
FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class : Click Event


Glossary Item Box

Occurs when the chart image is clicked.

Syntax

Visual Basic (Declaration) 
Public Event Click As ImageClickEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpChart
Dim handler As ImageClickEventHandler
 
AddHandler instance.Click, handler
C# 
public event ImageClickEventHandler Click

Remarks

The EnableClickEvent property specifies whether the Click event fires.

The MapAreaClick event fires if the RenderMapArea property is true and the EnableClickEvent property is false. If the RenderMapArea property is false and the EnableClickEvent property is true, only the Click event fires. If the RenderMapArea property is true and the EnableClickEvent property is true, the MapAreaClick event fires if the user clicks on a chart element. The Click event fires if the user clicks on the chart background.

The HotSpotMode property is used if RenderMapArea is true. HotSpotMode determines the behavior when the user clicks in a map area. The options are inactive, navigate, and post back. The inactive option is useful if you wish to display a tooltip in the map area. If the HotSpotMode is set to post back, the MapAreaClick and Client events are fired. If the RenderMapArea property is false, the HotSpotMode property has no effect.

Example

This example uses the Click event.
C#Copy Code
protected void FpChart1_Click(object sender, ImageClickEventArgs e)
  {
   FarPoint.Web.Chart.HitTest hitTest = FpChart1.HitTest(e.X, e.Y);
  }
Visual BasicCopy Code
Protected Sub FpChart1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles FpChart1.Click
  Dim hitTest As FarPoint.Web.Chart.HitTest
  hitTest = FpChart1.HitTest(e.X, e.Y)
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.