New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Client-side Events

RadDock1
  • Collapse
  • Close
RadDock1
RadDock2
  • Pin
  • Collapse
  • Close
RadDock2
Event log

The RadDock controls provide the following client-side events:

  • OnClientDragStart—fires before RadDock is dragged.
  • OnClientDrag—fires while RadDock is being dragged.
  • OnClientDragEnd—fires after RadDock was dragged.
  • OnClientCommand—fires when any of the commands of RadDock was clicked.
  • OnClientDockPositionChanging—fires when RadDock is being moved.
  • OnClientDockPositionChanged—fires after RadDock was moved.
  • OnClientResizeStart—fires when RadDock's resizing has started.
  • OnClientResizeEnd—fires when RadDock's resizing has finished.
  • OnClientInitialize—fires when the client-side object for the RadDock control is initialized.
  • DefaultVB.aspx
  • scripts.js
  • styles.css
<%@ Page Language="vb" AutoEventWireup="true"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" />
    <script src="scripts.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-medium">
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
            <table>
                <tr>
                    <td>
                        <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="200" Width="284">
                            <telerik:RadDock RenderMode="Lightweight" CssClass="higherZIndex" ID="RadDock1" runat="server" OnClientCommand="OnClientCommand" OnClientDockPositionChanged="OnClientDockPositionChanged"
                                OnClientDockPositionChanging="OnClientDockPositionChanging" OnClientDrag="OnClientDrag"
                                OnClientDragEnd="OnClientDragEnd" OnClientDragStart="OnClientDragStart" OnClientResizeStart="OnClientResizeStart"
                                OnClientResizeEnd="OnClientResizeEnd" OnClientInitialize="OnClientInitialize"
                                Resizable="true" Title="RadDock1" Text="RadDock1">
                            </telerik:RadDock>
                            <telerik:RadDock RenderMode="Lightweight" CssClass="higherZIndex" ID="RadDock2" runat="server" OnClientCommand="OnClientCommand" OnClientDockPositionChanged="OnClientDockPositionChanged"
                                DefaultCommands="All" OnClientDockPositionChanging="OnClientDockPositionChanging"
                                OnClientDrag="OnClientDrag" OnClientDragEnd="OnClientDragEnd" OnClientDragStart="OnClientDragStart"
                                Resizable="true" OnClientResizeStart="OnClientResizeStart" OnClientResizeEnd="OnClientResizeEnd"
                                OnClientInitialize="OnClientInitialize" Text="RadDock2" Title="RadDock2">
                            </telerik:RadDock>
                        </telerik:RadDockZone>
                    </td>
                    <td>
                        <telerik:RadDockZone ID="RadDockZone2" runat="server" MinHeight="200" Width="284">
                        </telerik:RadDockZone>
                    </td>
                </tr>
            </table>
        </telerik:RadDockLayout>
    </div>
    <qsf:EventLogConsole ID="EventLogConsole1" runat="server" AllowClear="true"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance