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/radiobuttonlist/client-side-programming/events/onitemclicked.md
+26-31Lines changed: 26 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,52 +10,47 @@ position: 5
10
10
11
11
# OnItemClicked
12
12
13
-
The `itemClicked` event occurs when item in **RadRadioButtonList** is clicked. The event is subsequent to [itemClicking event]({%slug radiobuttonlist/client-side-programming/events/onitemclicking%}) and is fired after the client-side validation.
13
+
The `itemClicked` event occurs when an item in **RadRadioButtonList** is clicked. The event is subsequent to [itemClicking event]({%slug radiobuttonlist/client-side-programming/events/onitemclicking%}) and is fired after the client-side validation.
14
14
15
15
The event handler receives two parameters:
16
16
17
-
1. The instance of the loaded RadRadioButtonList control.
17
+
1. The instance of the loaded RadRadioButtonList control of type `Telerik.Web.UI.RadRadioButtonList`
18
18
19
-
1.An eventArgs parameter of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
19
+
1.The arguments of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
20
20
* get_item() - returns an instance of type [Telerik.Web.UI.ButtonListItem]({%slug Telerik.Web.UI.ButtonListItem%})
21
21
22
-
>caption Example 1: Handling RadRadioButtonList OnItemClicking event.
22
+
>caption Example handling RadRadioButtonList `OnItemClicked` event.
23
23
24
24
````ASP.NET
25
25
<script type="text/javascript">
26
-
function OnItemClicking(sender, args) {
27
-
var selectedLanguage = args.get_item().get_text();
28
-
alert("You clicked on " + selectedLanguage + " language!");
29
-
}
26
+
function OnItemClicked(sender, args) {
27
+
var radioButtonList = sender; // Telerik.Web.UI.RadRadioButtonList
28
+
var clickedItem = args.get_item(); // Telerik.Web.UI.RadRadioButton
29
+
var selectedLanguage = clickedItem.get_text(); // string
30
+
31
+
alert("You clicked on " + selectedLanguage + " language!");
0 commit comments