I tried to create a docks dynamically with the following code:
Dim newdock As RadDock = CreateRadDock()
newdock.Tag = "../Webparts/Info.ascx"
newdock.DockMode = DockMode.Docked
newdock.EnableRoundedCorners = True
newdock.UniqueName = "BXT"
newdock.ID = "BXT"
newdock.Skin = "Telerik"
newdock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.Close
Dim cmd As New DockCommand
cmd.Name = "DoSomething"
cmd.Text = "DoSomething"
newdock.Commands.Add(cmd)
newdock.CommandsAutoPostBack = True
newdock.Title = "Testing":
newdock.Height = New Unit(200, UnitType.Pixel)
AddHandler newdock.Command, AddressOf RadDock_Command
LoadWidget(newdock)
zoneLeft.Controls.Add(newdock)
The dock created sucessfully but when I clicked the default "Close" command, the server event "RadDock_Command" doesn't fire, But if I click the "Custom" command, it works ok. I want to capture the close event as I want to do something else. Please advise.
Andy Ho