Hi,

Would like to know how i can add the following code via codebehind

<ClientEvents>
<Maximize Handler="function (el){ var view = Ext.getBody().getViewSize(); el.setSize(view.width, view.height); }" />
</ClientEvents>
Below is how i plan to add the code (handler code here)

Dim newWin As New Coolite.Web.UI.Window
With newWin
    .ID = "Win1"
    .Title = "google.com"
    .Width = Unit.Pixel(100)
    .Height = Unit.Pixel(100)
    .AutoLoad = http://google.com
    .Minimizable = True
    .Maximizable = True
    .Collapsible = True
    .ClientEvents = (handler code here)
    .Show()
End With
Thanks in advance.