From 3a206a8145f1eadcfd5885832359457d1ccecd63 Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov <106250052+Tsvetomir-Hr@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:03:57 +0300 Subject: [PATCH 1/2] chore(DockManager): update state documenation --- components/dockmanager/state.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/dockmanager/state.md b/components/dockmanager/state.md index b378181642..2c013d09d6 100644 --- a/components/dockmanager/state.md +++ b/components/dockmanager/state.md @@ -59,9 +59,7 @@ If you want to make changes to the current DockManager state: > Do not use `GetState()` in the [`OnStateInit`](#onstateinit) or [`OnStateChanged`](#onstatechanged) events. Do not use `SetState()` in `OnStateInit`. Instead, get or set the `DockManagerState` property of the event argument. ->tip To reset the DockManager state to its initial markup configuration, call `SetState(null)`. -> -> To reset the DockManager state to a completely new configuration, create a `new DockManagerState()` and apply the settings there. Then pass the state object to `SetState()`. +>tip To reset the DockManager state to its initial markup configuration, use the `GetState()` and `SetState()` methods. An example of such approach can be seen in the following KB article: [Reset DockManager State on Button Click in Blazor](slug:dockmanager-kb-reset-state) ## Example @@ -219,4 +217,5 @@ The example below shows how to restore the previous state of the DockManager on * [Live Demo: DockManager](https://demos.telerik.com/blazor-ui/dockmanager/overview) * [DockManagerState API reference](slug:Telerik.Blazor.Components.TelerikDockManager) -* [Blazor DockManager](slug:dockmanager-overview) \ No newline at end of file +* [Blazor DockManager](slug:dockmanager-overview) +* [Reset DockManager State on Button Click](slug:dockmanager-kb-reset-state) \ No newline at end of file From 528a91825769b8d8fed52a414c5b908432a4d43a Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov <106250052+Tsvetomir-Hr@users.noreply.github.com> Date: Wed, 6 Aug 2025 12:47:22 +0300 Subject: [PATCH 2/2] Update components/dockmanager/state.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> --- components/dockmanager/state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dockmanager/state.md b/components/dockmanager/state.md index 2c013d09d6..11617be2c2 100644 --- a/components/dockmanager/state.md +++ b/components/dockmanager/state.md @@ -59,7 +59,7 @@ If you want to make changes to the current DockManager state: > Do not use `GetState()` in the [`OnStateInit`](#onstateinit) or [`OnStateChanged`](#onstatechanged) events. Do not use `SetState()` in `OnStateInit`. Instead, get or set the `DockManagerState` property of the event argument. ->tip To reset the DockManager state to its initial markup configuration, use the `GetState()` and `SetState()` methods. An example of such approach can be seen in the following KB article: [Reset DockManager State on Button Click in Blazor](slug:dockmanager-kb-reset-state) +>tip To reset the DockManager state to its initial markup configuration, use the `GetState()` and `SetState()` methods. The [Reset DockManager State on Button Click in Blazor](slug:dockmanager-kb-reset-state) KB article demonstrates this approach. ## Example