Log In
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Collapse]Docking and Popups
   [Expand]Product Information
     ASPxDocking Overview
      Panel Overview
      Forbidden Zones
      Common Docking Events
      Layout Management
      Cookie Support
    [Expand]Visual Elements
   [Expand]Hint Control
   [Expand]Loading Panel
   [Expand]Popup Control
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Layout Management

ASPxDockManager allows you to save and restore the previously saved information on layout of panels on the page. This information includes the settings that control the visibility, an owner zone, position within the zone, allowed dock state, size, and position of panels on the page.

The ASPxDockManager's ASPxDockManager.ClientLayout event enables you to save the panels' layout each time it is being changed and restore it on the first page load. This event provides the ASPxClientLayoutArgs.LayoutMode property that indicates whether the layout should be saved or restored.

The example below shows how to save/restore the docking layout to/from a session.

ASPxDockManager allows you to reset all panels (dock state, owner zone, size, position, etc.) on the page to the initial (specified in markup) state using the ASPxDockManager.ResetLayoutToInitial method.

You can prohibit end-users from the docking layout changes using the ASPxDockManager.FreezeLayout property. In this case, changing a panel's dock state and rearranging panels within a zone by dragging them is not permitted.

Expanded See Also

Is this topic helpful?​​​​​​​