Back to Devexpress

Common Docking Events

aspnetmvc-11476-components-docking-and-popups-docking-common-docking-events.md

latest2.9 KB
Original Source

Common Docking Events

  • Feb 02, 2023
  • 2 minutes to read

All extensions included in the DevExpress MVC Docking suite (i.e. DockPanelExtension, DockZoneExtension and DockManagerExtension) provide advanced client-side event support that gives you the ability to completely control the behavior of dock panels and zones.

The most typical end-user actions (such as dragging and docking) invoke common events of all the key elements of the panel docking functionality.

  • StartDragging and EndDragging events, specific to DockPanel ( StartPanelDragging and EndPanelDragging specific to DockManager), allow you to respond to the corresponding end-user actions performed on a panel.
  • BeforeDock and AfterDock events are common for DockPanel, DockZone and DockManager. They fire before and after a panel is docked to a zone, allowing you to cancel panel docking if required.
  • BeforeFloat and AfterFloat events are common for DockPanel and DockManager. They fire before and after a panel is undocked from a zone, allowing you to cancel the action if required.

The table below lists available client-side common docking events.

EventDock Manager EventsDock Zone EventsDock Panel Events
StartDraggingASPxClientDockManager.StartPanelDragging-ASPxClientDockPanel.StartDragging
EndDraggingASPxClientDockManager.EndPanelDragging-ASPxClientDockPanel.EndDragging
BeforeDockASPxClientDockManager.BeforeDockASPxClientDockZone.BeforeDockASPxClientDockPanel.BeforeDock
AfterDockASPxClientDockManager.AfterDockASPxClientDockZone.AfterDockASPxClientDockPanel.AfterDock
BeforeFloatASPxClientDockManager.BeforeFloat-ASPxClientDockPanel.BeforeFloat
AfterFloatASPxClientDockManager.AfterFloat-ASPxClientDockPanel.AfterFloat

The image below demonstrates the sequence of events invoked when an end-user drags and docks a panel.

See Also

Online Demo: Docking - Client-Side Events