Hmmm - your exmple works but in my app I am dynamically creating the docs:
if (IsAdministrator)
{
dock.EnableDrag =
true;
dock.DefaultCommands = Telerik.Web.UI.Dock.
DefaultCommands.Close;
}
else
{
dock.EnableDrag =
false;
dock.DefaultCommands = Telerik.Web.UI.Dock.
DefaultCommands.None;
}
RadDockLayout1.Controls.Add(dock);
it's definately hitting the line where we set the commands to 'none' but the close and collapse icons are still there and they are functional.
Any ideas?