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

How to Hide RadDock TitleBar ?

5 Answers 193 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Prince M. Premnath
Top achievements
Rank 2
Prince M. Premnath asked on 29 Oct 2009, 10:37 AM
Hello All !

 I wish to hide the RadDock TitleBar how can i do this ?
-Prince

5 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 29 Oct 2009, 11:06 AM
Hello Prince,

Set the DockHandle property to "None".

Here are some online resources that I think will be helpful:



All the best,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Prince M. Premnath
Top achievements
Rank 2
answered on 29 Oct 2009, 11:30 AM
I think its working , but in addition i need the Drag and Drop functionality as well .. it doesn't seems to be working , should i need to set more properties ??


0
Pero
Telerik team
answered on 29 Oct 2009, 11:42 AM
Hi Prince,

Please take a look at the following demo. It explains how to set drag handle to a custom HTML element.


Regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Pedro Laranjo
Top achievements
Rank 1
answered on 13 Oct 2010, 11:47 AM
Hello All,

Is it possible do add a custom drag handle to a image on the titlebar?
I already know how to implement this inside the dock but it doesn't seem to work with the Titlebar.

I want to define an image (icon) inside the Titlebar so that the user can drag the Dock instead of all the Titlebar.

I tryed using the following client script on the markup:

function SetHandleDock(dock, args) {
            dock.set_handle(document.getElementById(dock.get_id() + "_T_Handle"));
}

And create the handle on codebehind:
//Dock Handle
//Create an image that will be set on the client-side as a handle for the dock
Control u = new Control();
System.Web.UI.WebControls.Image dockHandle = new System.Web.UI.WebControls.Image();
dockHandle.ID = "Handle";
dockHandle.ImageUrl = "~/Content/drag_icon.gif";
Label l = new Label();
l.Text = w.Title;
u.Controls.Add(dockHandle);
u.Controls.Add(l);
Dashboard.Models.UI.DynamicallyCreatedTemplate t = new Models.UI.DynamicallyCreatedTemplate(ListItemType.Item, u);
dock.TitlebarTemplate = t;
dock.OnClientInitialize = "SetHandleDock";

If it's possible please let me know.
Thanks
Tiago
0
Pero
Telerik team
answered on 15 Oct 2010, 04:58 PM
Hi Tiago,

For your convenience I have implemented a sample project that will help you achieve your specific scenario. Please find it attached to the thread.

Sincerely yours,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Dock
Asked by
Prince M. Premnath
Top achievements
Rank 2
Answers by
Pero
Telerik team
Prince M. Premnath
Top achievements
Rank 2
Pedro Laranjo
Top achievements
Rank 1
Share this question
or