New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientLoad
The OnClientLoad event is raised when the RadRating client-side object is initialized. It can notify you that the control is available(e.g. to store a reference to its client-side object for later use).
The event handler receives two arguments:
-
Sender – the RadRating object that fired the event.
-
Event arguments – an empty event arguments object.
You can check how to set the value of the rating control in its OnClientLoad event in Example 1.
Example 1: Using the OnClientLoad event.
ASP.NET
<telerik:RadRating RenderMode="Lightweight" runat="server" ID="RadRating1" OnClientLoad="OnClientLoad"></telerik:RadRating>
<script type="text/javascript">
function OnClientLoad(sender, args) {
sender.set_value(3);
}
</script>