What I what to do: When RadDock1 gets docked in RadDockZone2, I want to change the title of RadDock2 to the title of RadDock1 and then move RadDock1 back to its RadDockZone1. And the same for when RadDock1 gets docked in RadDockZone3.
I need this done server side. I got all to work except moving RadDock1 back to its original place. I can manipulate all the docks when I'm in RadDock1_DockPositionChanged. The problem is when I leave RadDock1_DockPositionChanged it sets the DockZoneID back to where RadDock1 was moved to when the routine has ended.
I am using MasterPages.
Protected
Sub RadDock1_DockPositionChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.DockPositionChangedEventArgs) Handles RadDock1.DockPositionChanged, RadDock2.DockPositionChanged, RadDock3.DockPositionChanged
Dim mpContentPlaceHolder As ContentPlaceHolder = CType(Master.FindControl("ContentPlaceHolder3"), ContentPlaceHolder)
Dim i As Int32
Dim iDockTo, iDockFrom As Int32
Dim MyDock As Telerik.Web.UI.RadDock
Dim MyDockZone As Telerik.Web.UI.RadDockZone
iDockFrom = CalcDockNumber(sender.DockZoneID)
iDockTo = CalcDockNumber(e.DockZoneID)
If iDockFrom = iDockTo Then Exit Sub
MyDock = CType(mpContentPlaceHolder.FindControl("RadDock" & iDockTo), Telerik.Web.UI.RadDock)
MyDock.Title = sender.title
MyDock =
CType(mpContentPlaceHolder.FindControl("RadDock" & iDockFrom), Telerik.Web.UI.RadDock)
MyDockZone =
CType(mpContentPlaceHolder.FindControl("RadDockZone" & iDockFrom), Telerik.Web.UI.RadDockZone)
MyDock.Dock(MyDockZone.ID)
End Sub