Back to Devexpress

ASPxDockManager.ResetLayoutToInitial() Method

aspnet-devexpress-dot-web-dot-aspxdockmanager-fe24357b.md

latest2.3 KB
Original Source

ASPxDockManager.ResetLayoutToInitial() Method

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

Declaration

csharp
public void ResetLayoutToInitial()
vb
Public Sub ResetLayoutToInitial

Remarks

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.

Example

csharp
protected void btnReset_Click(object sender, EventArgs e) {
      MyDockManager.ResetLayoutToInitial();
}
vb
Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As EventArgs)
      MyDockManager.ResetLayoutToInitial()
End Sub
aspx
<dx:ASPxDockManager ID="MyDockManager" runat="server">
</dx:ASPxDockManager>

<dx:ASPxButton ID="btnReset" runat="server" Text="Reset Layout" onclick="btnReset_Click">
</dx:ASPxButton>

See Also

Layout Management

Docking

Online Demo: Docking - Layout Management

ASPxDockManager Class

ASPxDockManager Members

DevExpress.Web Namespace