# OnClientDragEnd

The **OnClientDragEnd** client-side event occurs when the user drops a **RadDock** control after a drag operation. This event occurs after the **OnClientDockPositionChanged** event.

The event handler receives a single parameter: the instance of the **RadDock** control that the user just dropped.

The following example uses the **OnClientDragEnd** event handler to restore a **RadDock** control to its expanded state after it was collapsed for the duration of a drag operation:

```ASP.NET
<script type="text/javascript">
    function Collapse(dock, e)
    {
        dock.set_collapsed(true);
    }
    function Expand(dock, e)
    {
        dock.set_collapsed(false);
    }
</script>
<telerik:RadDockLayout ID="RadDockLayout1" runat="server">
 <telerik:RadDockZone ID="RadDockZone1" runat="server">
   <telerik:RadDock
     ID="RadDock1"
     runat="server"
     OnClientDragStart="Collapse"
     OnClientDragEnd="Expand" />   
 </telerik:RadDockZone>
</telerik:RadDockLayout>
```

## See Also

* [OnClientDragStart](https://www.telerik.com/products/aspnet-ajax/documentation/controls/dock/client-side-programming/events/onclientdragstart)

* [OnClientDrag](https://www.telerik.com/products/aspnet-ajax/documentation/controls/dock/client-side-programming/events/onclientdrag)

* [OnClientDockPositionChanged](https://www.telerik.com/products/aspnet-ajax/documentation/controls/dock/client-side-programming/events/onclientdockpositionchanged)

* [Drag And Drop](https://www.telerik.com/products/aspnet-ajax/documentation/controls/dock/getting-started/drag-and-drop)
