From 1ce948b57a68a0823002429169c22685d245f93d Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:13:19 +0300 Subject: [PATCH 1/3] docs(DockManager): Add missing UnpinnedSize and UnpinnedSizeChanged --- components/dockmanager/overview.md | 1 + 1 file changed, 1 insertion(+) diff --git a/components/dockmanager/overview.md b/components/dockmanager/overview.md index 64eb0507e..bfa6c429c 100644 --- a/components/dockmanager/overview.md +++ b/components/dockmanager/overview.md @@ -130,6 +130,7 @@ The following table lists the Dock Manager parameters. Also check the [DockManag | `Size` | `string` | Determines the size of the splitter pane. | | `Unpinnable` | `bool`
(`false`) | Determines whether the pane can be unpinned. | | `Unpinned` | `bool`
(`true`) | Determines whether the pane is unpinned. | +| `UnpinnedSize` | `string` | Determines the size of the splitter pane when it is unpinned. | | `Visible` | `bool`
(`true`) | Determines whether the tab/pane is rendered. | ### DockManagerSplitPane Parameters From a1f9e288f735de2ab9bdc9a2b83945cf5ce2f363 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:21:26 +0300 Subject: [PATCH 2/3] Update events.md --- components/dockmanager/events.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/components/dockmanager/events.md b/components/dockmanager/events.md index aba596d3a..d2e605bcf 100644 --- a/components/dockmanager/events.md +++ b/components/dockmanager/events.md @@ -15,6 +15,7 @@ This article explains the events available in the Telerik DockManager for Blazor * [OnDock](#ondock) * [OnUndock](#ondock) * [VisibleChanged](#visiblechanged) +* [UnpinnedSizeChanged](#unpinnedsizechanged) * [SizeChanged](#sizechanged) * [OnPaneResize](#onpaneresize) * [State Events](#state-events) @@ -49,6 +50,10 @@ The event handler receives as an argument an `DockManagerUndockEventArgs` object The `VisibleChanged` event is fired when the user tries to hide a given pane. You can effectively cancel the event by not propagating the new visibility state to the variable the `Visible` property is bound to. This is the way to cancel the event and keep the pane visible. +## UnpinnedSizeChanged + +The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed. + ## SizeChanged The `SizeChanged` event is triggered when the `Size` parameter of the corresponding pane is changed. @@ -119,9 +124,13 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object Pane 1. Undocking is allowed. Docking over it is cancelled. + UnpinnedSizeChanged is handled. + Current UnpinnedSize: @Pane1UnpinnedSize @@ -195,8 +204,9 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object @code { - private TelerikDockManager DockManagerRef { get; set; } + private TelerikDockManager? DockManagerRef { get; set; } + private string Pane1UnpinnedSize { get; set; } = "360px"; private bool Pane4Visible { get; set; } = true; private bool FloatingPaneVisible { get; set; } = true; @@ -246,6 +256,11 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object DockManagetEventLog.Insert(0, $"Pane {args.PaneId} was resized to {args.Size}."); } + private void Pane1UnpinnedSizeChanged(string newUnpinnedSize) + { + Pane1UnpinnedSize = newUnpinnedSize; + } + private void OnPaneUnpin(DockManagerUnpinEventArgs args) { if (args.PaneId == "Pane4") @@ -282,4 +297,4 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object ## See Also -* [DockManager Overview](slug:dockmanager-overview) \ No newline at end of file +* [DockManager Overview](slug:dockmanager-overview) From 61521c18f4b7c6c9ec3c9d2dcc234e4ebdcf08b0 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:26:55 +0300 Subject: [PATCH 3/3] polishing --- components/dockmanager/events.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/dockmanager/events.md b/components/dockmanager/events.md index d2e605bcf..1ce9a6502 100644 --- a/components/dockmanager/events.md +++ b/components/dockmanager/events.md @@ -15,8 +15,8 @@ This article explains the events available in the Telerik DockManager for Blazor * [OnDock](#ondock) * [OnUndock](#ondock) * [VisibleChanged](#visiblechanged) -* [UnpinnedSizeChanged](#unpinnedsizechanged) * [SizeChanged](#sizechanged) +* [UnpinnedSizeChanged](#unpinnedsizechanged) * [OnPaneResize](#onpaneresize) * [State Events](#state-events) * [OnPin](#onpin) @@ -50,17 +50,17 @@ The event handler receives as an argument an `DockManagerUndockEventArgs` object The `VisibleChanged` event is fired when the user tries to hide a given pane. You can effectively cancel the event by not propagating the new visibility state to the variable the `Visible` property is bound to. This is the way to cancel the event and keep the pane visible. -## UnpinnedSizeChanged - -The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed. - ## SizeChanged The `SizeChanged` event is triggered when the `Size` parameter of the corresponding pane is changed. +## UnpinnedSizeChanged + +The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed. + ## OnPaneResize -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. +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. The event handler receives as an argument an `DockManagerPaneResizeEventArgs` object that contains: @@ -259,6 +259,8 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object private void Pane1UnpinnedSizeChanged(string newUnpinnedSize) { Pane1UnpinnedSize = newUnpinnedSize; + + DockManagetEventLog.Insert(0, $"Pane Pane 1 was resized to {newUnpinnedSize} while unpinned."); } private void OnPaneUnpin(DockManagerUnpinEventArgs args)