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

Title bar missing

1 Answer 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Alec
Top achievements
Rank 1
Alec asked on 26 Aug 2009, 02:46 AM
I don't know why my radDock doesnt show title bar at all.


            RadDock radDock = new RadDock();  
            radDock.DockMode = DockMode.Docked;  
            radDock.OnClientInitialize = "SetHandleDock";  
            radDock.DockHandle = DockHandle.None;  
            radDock.Title = lzContent.Title ;  
            radDock.UniqueName = Guid.NewGuid().ToString();  
            radDock.Width = Unit.Pixel(100);  
 
            radDock.ID = lzContent.LayoutZoneContentId.ToString();  
 
            //if banner  
            if (lzContent.LayoutZoneContentType.LayoutZoneContentTypeId == 1)  
            {  
                System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();  
                img.ID = "radDock" + lzContent.LayoutZoneContentId;  
 
                radDock.ContentContainer.Controls.Add(img);  
            } 

When I look at the source code, it doesn't have titlebar like: 

<div class="rdSideBorders rdHTitlebar"><div class="rdTitlebar rdDraggable" id="RadDock3aa72894-86eb-41c4-8d5b-f9b2feabeddb_T" style="cursor: move;">
   <em class="rdTitle">Dock Title</em><span class="rdCommands" style="width: 38px;"><a title="Close" class="rdClose"/><a title="Collapse" class="rdCollapse"/></span>
  </div>

It just shows

<div class="rdSideBorders"><div class="rdContent" id="ctl00_cphLeftColumn_rptContentType_ctl01_50_C">
    <img style="border-width: 0px;" src="../../library/Company/32/6872.jpg" id="ctl00_cphLeftColumn_rptContentType_ctl01_50_C_radDock50"/>
   </div></div>

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 26 Aug 2009, 06:25 AM
Hello Alec,

I examined your code and noticed that you are setting the radDock.DockHandle property to "DockHandle.None". This property gets or sets the value defining the behavior of the RadDock titlebar and grips. So, if it set to "DockHandle.None" the titlebar and the grip will be not visible.

To achieve the desired behavior (i.e. set a custom Drag Handle, and disable the dock to be dragged by its title bar) you need to use the radDock.EnableDrag = false, which will make the dock not to be dragged by the titlebar. There is an online demo on our web site that explains how a custom handle can be set to a RadDock.


Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Alec
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or