I'm creating some dynamic docks using server-side code, and I'm having an issue trying to set the behavior property.
If I want a dock to have pin, close, collapse, but also be resizable then I set the behavior like this:
<rad:RadDockableObject id="myObject" runat="server" text="The title" behavior="Close, Collapse, Pin, Resize" />
If I do it in server code, I am not given a collection to modify. I can only set one of those properties using the RadDockableObjectBehaviorFlags.
How do I set all of these properties?
The closest I can get is using commands:
SomeDock.Commands.Add(new RadDockableObjectCommand("Close"))
SomeDock.Commands.Add(new RadDockableObjectCommand("Collapse"))
SomeDock.Commands.Add(new RadDockableObjectCommand("Pin"))
But if I do this, whenever I pin an object the pin command dissapears and I cannot unpin it!
Seems like a bug perhaps or perhaps programmer error on my part?
Does anyone have a working example for me?
joe
If I want a dock to have pin, close, collapse, but also be resizable then I set the behavior like this:
<rad:RadDockableObject id="myObject" runat="server" text="The title" behavior="Close, Collapse, Pin, Resize" />
If I do it in server code, I am not given a collection to modify. I can only set one of those properties using the RadDockableObjectBehaviorFlags.
How do I set all of these properties?
The closest I can get is using commands:
SomeDock.Commands.Add(new RadDockableObjectCommand("Close"))
SomeDock.Commands.Add(new RadDockableObjectCommand("Collapse"))
SomeDock.Commands.Add(new RadDockableObjectCommand("Pin"))
But if I do this, whenever I pin an object the pin command dissapears and I cannot unpin it!
Seems like a bug perhaps or perhaps programmer error on my part?
Does anyone have a working example for me?
joe