May 27, 2008, 3:39 AM
add maximize handler code via codebehind
Hi,
Would like to know how i can add the following code via codebehind
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.