Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ position: 0

# Events Overview

RadToggleButton exposes several client-side events which allow easy and flexible use in a wide range of application scenarios:
RadToggleButton exposes several client-side events that allow easy and flexible use in a wide range of application scenarios:

* **[OnClientLoad (load)]({%slug togglebutton/client-side-programming/events/onclientload%})** - raised when the control is initialized.

Expand All @@ -26,9 +26,9 @@ RadToggleButton exposes several client-side events which allow easy and flexible

* **[OnClientMouseOut (mouseOut)]({%slug togglebutton/client-side-programming/events/onclientmouseout%})** - raised when the mouse leaves the control.

To handle the desired event, the user must set the respective property to the name of the JavaScript function handling the event or to anonymous JavaScript function. Here is an example:
To handle the desired event, the user must set the respective property to the name of the JavaScript function handling the event or to an anonymous JavaScript function. Here is an example:

>caption Example 1: Passing named (non-anonymous) JavaScript function.
>caption Example 1: Passing a named (non-anonymous) JavaScript function.

````ASP.NET
<script type="text/javascript">
Expand All @@ -53,7 +53,7 @@ RadToggleButton1.OnClientClicked = "Click" 'passing the name of the JS function
````


>caption Example 2: Passing anonymous JavaScript function.
>caption Example 2: Passing an anonymous JavaScript function.

````ASP.NET
<script type="text/javascript">
Expand Down