Chart\Web Forms\ThinWeb\Client Side Events Tool
Chart\Mvc\ThinWeb\Client Side Events Tool
Diagram\Web Forms\ThinWeb\Client Side Events Tool
Diagram\Mvc\ThinWeb\Client Side Events Tool
The client side events tool allows you capture client mouse events and execute JScript code on the client depending on the current chart or diagram element. The following code snippet shows how to capture the mouse down event on the client and display a simple alert.
Nevron Chart ThinWeb
C# |
Copy Code
|
---|---|
if (!NThinChartControl1.Initialized) // get the default chart // add one bar NInteractivityStyle interactivityStyle = new NInteractivityStyle(); NThinChartControl1.Controller.Tools.Add(new NClientMouseEventTool()); |
Nevron Diagram ThinWeb
C# |
Copy Code
|
---|---|
if (!NThinDiagramControl1.Initialized) { // init the document NBasicShapesFactory factory = new NBasicShapesFactory(document); // apply interactivity NThinDiagramControl1.SizeToContent(); // configure the controller } |
Chart\Web Forms\ThinWeb\Client Side Events Tool
Chart\Mvc\ThinWeb\Client Side Events Tool
Diagram\Web Forms\ThinWeb\Client Side Events Tool
Diagram\Mvc\ThinWeb\Client Side Events Tool