This server-side event fires when a chart element is clicked on by the user.
Defines the Click event using the event property syntax. The Events property stores all the event delegates of a control as name/value pairs.
Visual Basic (Declaration) | |
---|---|
Public Event Click() As ImageClickEventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public event ImageClickEventHandler Click() |
This event fires when a chart element is clicked on by the user, but will only fire if the RenderType property is set to InputTag.
The Click event may be used to handle selection when a drilldown scenario is being implemented. The ImageClickEventHandler provides the x and y-mouse coordinates required by the Select method to determine what data point the user clicked on. NOTE however that we HIGHLY RECOMMEND using client-side image maps for drilldown because of its ease of use!
The sender parameter of the ImageClickEventHandler will always be the root Chart object.
For details on how to use drilldown see the Implementing drilldown topic.
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