You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/dockmanager/events.md
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ This article explains the events available in the Telerik DockManager for Blazor
16
16
*[OnUndock](#ondock)
17
17
*[VisibleChanged](#visiblechanged)
18
18
*[SizeChanged](#sizechanged)
19
+
*[UnpinnedSizeChanged](#unpinnedsizechanged)
19
20
*[OnPaneResize](#onpaneresize)
20
21
*[State Events](#state-events)
21
22
*[OnPin](#onpin)
@@ -53,9 +54,13 @@ The `VisibleChanged` event is fired when the user tries to hide a given pane. Yo
53
54
54
55
The `SizeChanged` event is triggered when the `Size` parameter of the corresponding pane is changed.
55
56
57
+
## UnpinnedSizeChanged
58
+
59
+
The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed.
60
+
56
61
## OnPaneResize
57
62
58
-
The `OnPaneResize` event is fired when any pane is resized. It lets you respond to that change if needed - for example, call the `.Refresh()` method of a chart or otherwise repaint a child component in the content. You can also use it to, for example, update the saved [state](slug:dockmanager-state) for your users.
63
+
The `OnPaneResize` event is fired when a pane is resized, except unpinned panes. It lets you respond to that change if needed - for example, call the `.Refresh()` method of a chart or otherwise repaint a child component in the content. You can also use it to, for example, update the saved [state](slug:dockmanager-state) for your users.
59
64
60
65
The event handler receives as an argument an `DockManagerPaneResizeEventArgs` object that contains:
61
66
@@ -119,9 +124,13 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object
119
124
<DockManagerContentPane HeaderText="Pane 1"
120
125
Id="Pane1"
121
126
Size="50%"
127
+
UnpinnedSize="@Pane1UnpinnedSize"
128
+
UnpinnedSizeChanged="@Pane1UnpinnedSizeChanged"
122
129
Closeable="false">
123
130
<Content>
124
131
Pane 1. Undocking is allowed. Docking over it is cancelled.
132
+
<code>UnpinnedSizeChanged</code> is handled.
133
+
Current <code>UnpinnedSize</code>: <strong>@Pane1UnpinnedSize</strong>
125
134
</Content>
126
135
</DockManagerContentPane>
127
136
@@ -195,8 +204,9 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object
0 commit comments