Skip to content

Commit 6c1b2e7

Browse files
committed
Update RadRadioButtonList client-side API usages
1 parent a63254b commit 6c1b2e7

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

controls/radiobuttonlist/client-side-programming/events/onitemclicked.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ The event handler receives two parameters:
1616

1717
1. The instance of the loaded RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListEventArgs]({%slug Telerik.Web.UI.RadioButtonListEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
2121

2222
>caption Example 1: Handling RadRadioButtonList OnItemClicking event.
2323
2424
````ASP.NET
2525
<script type="text/javascript">
2626
function OnItemClicking(sender, args) {
27-
var selectedLanguage = args.get_radioButton().get_text();
27+
var selectedLanguage = args.get_item().get_text();
2828
alert("You clicked on " + selectedLanguage + " language!");
2929
}
3030
</script>

controls/radiobuttonlist/client-side-programming/events/onitemclicking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The event handler receives two parameters:
1616

1717
1. The instance of the loaded RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListCancelEventArgs]({%slug Telerik.Web.UI.RadioButtonListCancelEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%}) (the clicked item).
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListCancelEventArgs]({%slug Telerik.Web.UI.ButtonListCancelEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%}) (the clicked item).
2121
* get_cancel() - sets a bool value that indicates whether the event will be canceled. Setting true means the event will be canceled.
2222
* set_cancel() - returns a bool value that indicates whether the event was canceled. True means the event is canceled.
2323

@@ -26,7 +26,7 @@ The event handler receives two parameters:
2626
````ASP.NET
2727
<script type="text/javascript">
2828
function OnItemClicking(sender, args) {
29-
var selectedLanguage = args.get_radioButton().get_text();
29+
var selectedLanguage = args.get_item().get_text();
3030
var toChange = !confirm("You clicked on " + selectedLanguage + " language!");
3131
args.set_cancel(toChange);
3232
}

controls/radiobuttonlist/client-side-programming/events/onitemload.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ The event handler receives two parameters:
1616

1717
1. The instance of the loaded RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListEventArgs]({%slug Telerik.Web.UI.RadioButtonListEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
2121

2222
>caption Example 1: Handling RadRadioButtonList OnItemLoad event.
2323
2424
````ASP.NET
2525
<script type="text/javascript">
2626
function OnItemLoad(sender, args) {
27-
alert(args.get_radioButton().get_text() + " item loaded!");
27+
alert(args.get_item().get_text() + " item loaded!");
2828
}
2929
</script>
3030

controls/radiobuttonlist/client-side-programming/events/onitemmouseout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The event handler receives two parameters:
1616

1717
1. The instance of the clicked RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListEventArgs]({%slug Telerik.Web.UI.RadioButtonListEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
2121

2222

2323
## See Also

controls/radiobuttonlist/client-side-programming/events/onitemmouseover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The event handler receives two parameters:
1616

1717
1. The instance of the clicked RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListEventArgs]({%slug Telerik.Web.UI.RadioButtonListEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListEventArgs]({%slug Telerik.Web.UI.ButtonListEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%})
2121

2222

2323
## See Also

controls/radiobuttonlist/client-side-programming/events/onselectedindexchanged.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The event handler receives two parameters:
1616

1717
1. The instance of the loaded RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListSelectedIndexChangedEventArgs]({%slug Telerik.Web.UI.RadioButtonListSelectedIndexChangedEventArgs%}), containing the following properties and methods:
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListSelectedIndexChangedEventArgs]({%slug Telerik.Web.UI.ButtonListSelectedIndexChangedEventArgs%}), containing the following properties and methods:
2020
* get_oldSelectedIndex() - returns the index of the previously selected item.
2121
* get_newSelectedIndex() - returns the index of the currently selected item.
2222

controls/radiobuttonlist/client-side-programming/events/onselectedindexchanging.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The event handler receives two parameters:
1616

1717
1. The instance of the loaded RadRadioButtonList control.
1818

19-
1. An eventArgs parameter of type [Telerik.Web.UI.RadioButtonListCancelEventArgs]({%slug Telerik.Web.UI.RadioButtonListCancelEventArgs%}), containing the following properties and methods:
20-
* get_radioButton() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%}) (the clicked item).
19+
1. An eventArgs parameter of type [Telerik.Web.UI.ButtonListCancelEventArgs]({%slug Telerik.Web.UI.ButtonListCancelEventArgs%}), containing the following properties and methods:
20+
* get_item() - returns an instance of type [Telerik.Web.UI.RadioButtonListItem]({%slug Telerik.Web.UI.RadioButtonListItem%}) (the clicked item).
2121
* get_cancel() - sets a bool value that indicates whether the event will be canceled. Setting true means the event will be canceled.
2222
* set_cancel() - returns a bool value that indicates whether the event was canceled. True means the event is canceled.
2323

@@ -26,7 +26,7 @@ The event handler receives two parameters:
2626
````ASP.NET
2727
<script type="text/javascript">
2828
function OnSelectedIndexChanging(sender, args) {
29-
var selectedLanguage = args.get_radioButton().get_text();
29+
var selectedLanguage = args.get_item().get_text();
3030
var toChange = !confirm("You are about to change to " + selectedLanguage + " language!");
3131
args.set_cancel(toChange);
3232
}

controls/radiobuttonlist/client-side-programming/events/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To handle the desired event, the user must set the respective property to the na
3535
````ASP.NET
3636
<script type="text/javascript">
3737
function OnItemClicked(sender, args) {
38-
var selectedItem = args.get_radioButton();
38+
var selectedItem = args.get_item();
3939
alert(selectedItem.get_text());
4040
}
4141
</script>
@@ -62,7 +62,7 @@ RadRadioButtonList1.ClientEvents.OnItemClicked = "OnItemClicked" 'passing the n
6262
6363
````ASP.NET
6464
<telerik:RadRadioButtonList runat="server" ID="RadRadioButtonList1">
65-
<ClientEvents OnItemClicked="function(sender,args){var selectedItem = args.get_radioButton(); alert(selectedItem.get_text());}" />
65+
<ClientEvents OnItemClicked="function(sender,args){var selectedItem = args.get_item(); alert(selectedItem.get_text());}" />
6666
<Items>
6767
<telerik:RadioButtonListItem Text="English" Selected="true" />
6868
<telerik:RadioButtonListItem Text="German" />
@@ -72,10 +72,10 @@ RadRadioButtonList1.ClientEvents.OnItemClicked = "OnItemClicked" 'passing the n
7272
````
7373

7474
````C#
75-
RadRadioButtonList1.ClientEvents.OnClientClicked = "function(sender,args){var selectedItem = args.get_radioButton(); alert(selectedItem.get_text());}"; //passing an anonymous JS function
75+
RadRadioButtonList1.ClientEvents.OnClientClicked = "function(sender,args){var selectedItem = args.get_item(); alert(selectedItem.get_text());}"; //passing an anonymous JS function
7676
````
7777
````VB
78-
RadRadioButtonList1.ClientEvents.OnClientClicked = "function(sender,args){var selectedItem = args.get_radioButton(); alert(selectedItem.get_text());}" 'passing an anonymous JS function
78+
RadRadioButtonList1.ClientEvents.OnClientClicked = "function(sender,args){var selectedItem = args.get_item(); alert(selectedItem.get_text());}" 'passing an anonymous JS function
7979
````
8080

8181

0 commit comments

Comments
 (0)