You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/htmlchart/client-side-programming/events/overview.md
+40-1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ position: 0
12
12
13
13
**RadHtmlChart** exposes several client-side events for handling different user interactions:
14
14
15
+
***OnKendoWidgetInitializing**—raised just before the Kendo Widget is initialized. Receives the chart and the chart widget's options as arguments.
16
+
15
17
***OnLoad**—raised when the control is initialized.
16
18
17
19
*[OnDrag](https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#events-drag)—raised as long as the user is dragging the chart using the mouse or swipe gestures.
@@ -40,6 +42,41 @@ position: 0
40
42
41
43
To use these events, simply write a JavaScript function that can be called when the event occurs. Then assign the name of this function as the value of the the corresponding property in the **ClientEvents** RadHtmlChart subtag.
42
44
45
+
>caption **Example 1:** Handle the client-side **OnKendoWidgetInitializing** event
46
+
47
+
````ASP.NET
48
+
<script type="text/javascript">
49
+
function OnKendoWidgetInitializing(chart, options) {
50
+
options.title.text = "title text changed from init";
>caption **Example 2:** Handle the client-side **OnLoad** event
43
80
````ASP.NET
44
81
<script type="text/javascript">
45
82
function OnLoad(chart) {
@@ -72,8 +109,10 @@ To use these events, simply write a JavaScript function that can be called when
72
109
</telerik:RadHtmlChart>
73
110
````
74
111
75
-
All client-side events, except **OnLoad**, are references to their corresponding events of the Kendo UI HtmlChart object. You can get familiar with the full set of arguments coming with each event in the [Kendo UI HtmlChart API reference](https://docs.telerik.com/kendo-ui/api/dataviz/chart#events). For example:
76
112
113
+
All client-side events, except **OnLoad** and **KendoWidgetInitializing**, are references to their corresponding events of the Kendo UI HtmlChart object. You can get familiar with the full set of arguments coming with each event in the [Kendo UI HtmlChart API reference](https://docs.telerik.com/kendo-ui/api/dataviz/chart#events). For example:
114
+
115
+
>caption **Example 3:** Handle the client-side **OnSeriesClick** event
0 commit comments