OnClientLoad | RadTagCloud for ASP.NET AJAX Documentation
Edit this page


The OnClientLoad event is raised when the RadTagCloud object is loaded on the page. It can notify the developer that the control is available for further client-side programmatic interaction.

The event handler receives two arguments:

  • Sender–the TagCould object that fired the event.

  • Event arguments–an empty event arguments object.

Example 1: Shows how you can use the event to alert the count of the loaded items in the TagCloud.

<telerik:RadTagCloud RenderMode="Lightweight" runat="server" ID="RadTagCloud1" OnClientLoad="OnClientLoad">
        <telerik:RadTagCloudItem Text="Item 1" />
        <telerik:RadTagCloudItem Text="Item 2" />

<script type="text/javascript">
    function OnClientLoad(sender, args) {
        var loadedItems = sender.get_items().length;

        alert("The TagCload is loaded with " + loadedItems + " items.");

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article