New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnItemLoad
The itemLoad
event occurs when item is loaded in RadRadioButtonList.
The event handler receives two parameters:
-
The instance of the loaded RadRadioButtonList control.
-
An eventArgs parameter of type Telerik.Web.UI.ButtonListEventArgs, containing the following properties and methods:
- get_item() - returns an instance of type Telerik.Web.UI.ButtonListItem
Example 1: Handling RadRadioButtonList OnItemLoad event.
ASP.NET
<script type="text/javascript">
function OnItemLoad(sender, args) {
alert(args.get_item().get_text() + " item loaded!");
}
</script>
<telerik:RadRadioButtonList runat="server" ID="RadRadioButtonList1">
<ClientEvents OnItemLoad="OnItemLoad" />
<Items>
<telerik:RadioButtonListItem Text="English" Selected="true" />
<telerik:RadioButtonListItem Text="German" />
<telerik:RadioButtonListItem Text="French" />
</Items>
</telerik:RadRadioButtonList>