I am trying to create raddock's dynamically. The code I am using is the code from sample "Dock/ Dynamically Created Docks," sub "CreateRadDock," except that I do not want the raddock's default commands. I also do not want a postback. This is the code:
Private Function CreateRadDock() As RadDock
Dim docksCount As Integer = CurrentDockStates.Count
Dim dock As New RadDock()
dock.DockMode = DockMode.Docked
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None
dock.AutoPostBack = False
dock.UniqueName = Guid.NewGuid().ToString()
dock.ID = String.Format("RadDock{0}", dock.UniqueName)
dock.Title = "Dock"
dock.Width = Unit.Pixel(300)
Return dock
End Function
The problem is that, even though I have "AutoPostBack = False," it still does a post back during drag, or if I simply click on any of the dynamic RadDocks. Am I missing something?
Thanks,
Ivan
Private Function CreateRadDock() As RadDock
Dim docksCount As Integer = CurrentDockStates.Count
Dim dock As New RadDock()
dock.DockMode = DockMode.Docked
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None
dock.AutoPostBack = False
dock.UniqueName = Guid.NewGuid().ToString()
dock.ID = String.Format("RadDock{0}", dock.UniqueName)
dock.Title = "Dock"
dock.Width = Unit.Pixel(300)
Return dock
End Function
The problem is that, even though I have "AutoPostBack = False," it still does a post back during drag, or if I simply click on any of the dynamic RadDocks. Am I missing something?
Thanks,
Ivan