RadDock Close button and border

2 posts, 0 answers
  1. Ajay
    Ajay avatar
    42 posts
    Member since:
    Jul 2010

    Posted 12 Jul 2010 Link to this post


    How I can remove the close (cross) button from the dock's top right position?
    Also, how to customize (change/remove) the border of a RadDockZone (see attached jpg)?

  2. Pero
    Pero avatar
    1156 posts

    Posted 14 Jul 2010 Link to this post

    Hello Ajay,

    You can control the commands of the RadDock control for ASP.NET AJAX in the following ways:
    • Using the DefaultCommands property, you could specify which commands are to be used by the RadDock
    • Using the <Commands> inner tag of the dock and listing the commands which you want to appear in the titbar. The commands will appear in the exact order they are specified.

    The following source code shows a dock having only the ExpandCollapse command:

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head id="Head1" runat="server">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="300px" Width="300px">
                    <telerik:RadDock ID="RadDock1" runat="server" Title="RadDock-Title" Width="300px">
                            <telerik:DockExpandCollapseCommand />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />

    The easiest way to disable a border of a RadDockZone is by setting the BorderStyle="None" property. You could specify a different border color using the BorderColor property.
    Best wishes,
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top