This is a migrated thread and some comments may be shown as answers.

Custom Raddock Title Bar Buttons

2 Answers 121 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 03 Nov 2011, 04:52 PM
Hi There,

I had the thought today that it would be nice to have a button in the title bar of my RadDocks which would "pop" them out of their DockZone and make them freely draggable around the screen.  I see that there is an undock() function, but is there a way to add this functionality to the title bar?

It looks as if I would have to create a custom template for the title bar, but I am not sure how to go about that.

Thanks for any help,

Daniel

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Nov 2011, 12:30 PM
Hello Daniel,

Check the following help documentation which explains more about this.
Title Bar Template.

Thanks,
Princy.
0
Slav
Telerik team
answered on 08 Nov 2011, 12:44 PM
Hi guys,

You can achieve the desired effect via a custom command button in the title bar of the RadDocks. The online demo Dock / Commands shows how to add a custom commands and how to implement the logic of these commands. The demonstrated approach can be combined with the client method undock, that you have already found, in order to achieve undocking of a particular RadDock control.

Please find attached a sample project, implementing the described functionality. You can use it as reference to incorporate the feature into your actual project.

Best wishes,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Dock
Asked by
Daniel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Slav
Telerik team
Share this question
or