Edit this page

OnClientLoad

The OnClientLoad event is raised when the client-side object of a Tile is initialized and it can be used. This event was added in Q3 2013 SP2.

The event can be used to apply some customization or to store a reference to the control so it can be used in external JavaScript files.

The event handler receives one argument - the control instance that fired the event.

Example 1: Storing a reference to a tile when it loads.

<telerik:RadTextTile runat="server" ID="RadTextTile1" Text="I am a text tile" OnClientLoad="storeReference">
</telerik:RadTextTile>
<script type="text/javascript">
    var tiles = [];
    function storeReference(sender, args) {
        tiles.push(sender);
        alert(tiles.length);
    }
</script>