Custom Raddock Title Bar Buttons

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Nov 2011

    Posted 03 Nov 2011 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Nov 2011 Link to this post

    Hello Daniel,

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 08 Nov 2011 Link to this post

    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
Back to Top