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

RadDock Close button and border

1 Answer 68 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 12 Jul 2010, 09:38 AM
Hi,

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)?

Thanks

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 14 Jul 2010, 02:07 PM
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">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </asp:ScriptManager>
    <div>
        <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">
                    <Commands>
                        <telerik:DockExpandCollapseCommand />
                    </Commands>
                    <ContentTemplate>
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                        CONTENT
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
    </div>
    </form>
</body>
</html>

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,
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
Ajay
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or