aspnet-devexpress-dot-web-dot-aspxdockmanager-fe24357b.md
Returns the layout of panels managed by the ASPxDockManager to the initial state.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public void ResetLayoutToInitial()
Public Sub ResetLayoutToInitial
Use the ResetLayoutToInitial method to reset all panels on the page to the initial (specified in markup) state. The method resets the panel’s allowed dock state (ASPxDockPanel.AllowedDockState), owner zone (ASPxDockPanel.OwnerZoneUID), size (ASPxWebControl.Height and ASPxWebControl.Width), position (ASPxPopupControlBase.Left and ASPxPopupControlBase.Top) etc.
protected void btnReset_Click(object sender, EventArgs e) {
MyDockManager.ResetLayoutToInitial();
}
Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As EventArgs)
MyDockManager.ResetLayoutToInitial()
End Sub
<dx:ASPxDockManager ID="MyDockManager" runat="server">
</dx:ASPxDockManager>
<dx:ASPxButton ID="btnReset" runat="server" Text="Reset Layout" onclick="btnReset_Click">
</dx:ASPxButton>
See Also