This event fires before the writeHtml() or getHtml() method is executed.

Syntax

ASP.NET

<script type="text/javascript">
function Thumbnail1_PreRender(){
    //...your code...
}
</script>
<aur:Thumbnail ID="Thumbnail1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="PreRender" HandlerName="Thumbnail1_PreRender" />
    </ClientEvents>
</aur:Thumbnail>

PHP

<script type="text/javascript">
function Thumbnail1_PreRender(){
    //...your code...
}
</script>
<?php
    $Thumbnail = new Thumbnail("Thumbnail1");
    //...other params...
    $Thumbnail->getClientEvents()->setPreRender("Thumbnail1_PreRender");
    //...other params...
    $Thumbnail->render();
?>

JavaScript

function Thumbnail1_PreRender(){
    //...your code...
}
$au.thumbnail({
        events: {
            //...other params...
            preRender: [Thumbnail1_PreRender],
            //...other params...
        }
})