ASPxClientDockManager.AfterFloat Event
Fires on the client side after a panel is undocked from a zone.
Declaration
AfterFloat: ASPxClientEvent<ASPxClientDockManagerProcessingModeEventHandler<ASPxClientDockManager>>
Event Data
The AfterFloat event's data class is ASPxClientDockManagerProcessingModeEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
panel | Gets the panel currently being processed. |
processOnServer | Specifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs. |
zone | Gets the zone currently being processed. |
Remarks
Write an AfterFloat event handler to perform specific actions on the client side after each time the panel is undocked. You can use the event parameter’s properties to identify a panel (ASPxClientDockManagerProcessingModeEventArgs.panel) and zone (ASPxClientDockManagerProcessingModeEventArgs.zone) currently being processed.
If the processOnServer property is set to false
, the AfterFloat event is completely handled on the client side, using the assigned JScript handler without a postback to the server.
Setting the processOnServer property to true
indicates that the final processing of the event should be performed on the server side, and so a round trip to the server is required. During such a round trip, the corresponding server-side ASPxDockManager.AfterFloat event is fired, which when handled, allows any desired server-side action to be performed.
To learn more, see the Common Docking Events topic.
Example
<dx:ASPxDockManager ID="MyASPxDockManager" runat="server">
<ClientSideEvents
AfterDock="function(s, e) {e.panel.SetHeaderText(e.zone.zoneUID + ' - ' + e.panel.panelUID);}"
AfterFloat="function(s, e) {e.panel.SetHeaderText(e.panel.panelUID);}" />
</dx:ASPxDockManager>