Skip to content

Commit 738805e

Browse files
Tsvetomir-HrTsvetomir-Hr
authored andcommitted
chore: apply review recommendations
1 parent f1c8a54 commit 738805e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

knowledge-base/dockmanager-reset-state.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: how-to
55
page_title: How to Reset DockManager State Dynamically in Blazor
66
meta_title: Reset DockManager State Dynamically in Blazor
77
slug: dockmanager-kb-reset-state
8-
tags: dockmanager, blazor, state, reset
8+
tags: dockmanager, blazor, state
99
res_type: kb
1010
ticketid: 1691957
1111
---
@@ -22,7 +22,7 @@ ticketid: 1691957
2222

2323
## Description
2424

25-
I want to reset the state of the [DockManager](slug:dockmanager-overview) component on a button click. The DockManager currently only resets by reloading the page. I need a solution to reset its state dynamically.
25+
I want to reset the [DockManager state](slug:dockmanager-state) on a button click. The DockManager currently only resets by reloading the page. I need a solution to reset its state dynamically.
2626

2727
This knowledge base article also answers the following questions:
2828
- How to reset DockManager layout to its default state?
@@ -33,16 +33,14 @@ This knowledge base article also answers the following questions:
3333

3434
To reset the DockManager state dynamically on a button click:
3535

36-
1. Capture the Default State After Initial Render—Save the default state when the DockManager is first rendered using the [`OnAfterRenderAsync`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.componentbase.onafterrenderasync?view=aspnetcore-9.0) lifecycle method
36+
1. Capture and save the default DockManager state in the [`OnAfterRenderAsync`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.componentbase.onafterrenderasync?view=aspnetcore-9.0) lifecycle method.
3737

38-
2. Reset the State on Button Click—Restore the previously saved state when the button is clicked.
38+
2. Restore the previously saved default state when the button is clicked.
3939

4040
>caption Reset the DockManager layout to its default state
4141
4242
````RAZOR
43-
<strong>Change something in the DockManager (move, resize, or close panes), then click the button to restore the state</strong>
44-
<br />
45-
<br />
43+
Change something in the DockManager (move, resize, or close panes). Тhen click
4644
<TelerikButton OnClick="@ResetDockState" ThemeColor="@ThemeConstants.Button.ThemeColor.Primary">Reset Dock State</TelerikButton>
4745
<TelerikDockManager @ref="@DockManagerRef"
4846
Height="600px">
@@ -133,4 +131,4 @@ To reset the DockManager state dynamically on a button click:
133131
## See Also
134132

135133
- [DockManager Overview](slug:dockmanager-overview)
136-
- [Saving and Restoring DockManager State](slug:dockmanager-state)
134+
- [DockManager State](slug:dockmanager-state)

0 commit comments

Comments
 (0)