Title bar missing

2 posts, 0 answers
  1. Alec
    Alec avatar
    43 posts
    Member since:
    Mar 2009

    Posted 25 Aug 2009 Link to this post

    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;  

    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>

    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"/>
  2. Pero
    Pero avatar
    1156 posts

    Posted 26 Aug 2009 Link to this post

    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.

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