If I understand your case correctly, in live mode you want your RadDocks to be static. For example they shouldn't be dragable and no command should be active, in order to deny the user closing or collapsing/expanding the docks.
The RadDock control has a property EnableDrag
, which set to false
, disables the dragging the docks. When you disable the dragging feature, moving and docking the RadDocks will no longer be available.
You can also hide the commands in the title bar, especially the close command, so that the RadDocks cannot be closed, when live mode is active. For this purpose you can set the DefaultCommands
property of the RadDock to None
, if you want to hide all commands:
RadDock1.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None;
You can also specify the exact commands to be displayed, by using the same property, as show below:
RadDock1.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse | Telerik.Web.UI.Dock.DefaultCommands.Close;
Another approach to specify a custom set of commands is to add them to the Commands
collection of the RadDock. This method will override the commands, set via the DefaultCommands property.
I hope the provided information helps. Please let us know if you need additional assistance in order to achieve the desired functionality.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>