A pane that has Closeable="false" set does not render a "close" button and should not be closeable through any user interaction. However, pressing the Esc keyboard key (while the pane is floating and has the focus) closes the pane.
Run the following REPL example: https://blazorrepl.telerik.com/QTkgmKuM23c0uPv125
The floating pane closes.
The floating pane remains open.
Workaround:
Add the following script to the view:
<script suppress-error="BL9992">
document.addEventListener(
"keydown",
function (e) {
if (e.key === "Escape" && e.target.classList.contains("k-dock-manager-window")) {
e.stopImmediatePropagation();
e.preventDefault();
}
},
true
);
</script>All
No response
<TelerikDockManager Height="100vh" OnStateChanged="OnStateChanged" OnStateInit="OnStateInit" @ref="dockManager">
<DockManagerPanes>
<DockManagerSplitPane>
<Panes>
<DockManagerContentPane Closeable="false" Maximizable="true" HeaderText="Content1 header" @bind-Size="Content1PaneSize">
<Content>
<div>
yada yada
</div>
</Content>
</DockManagerContentPane>
<DockManagerSplitPane Orientation="DockManagerPaneOrientation.Vertical">
<Panes>
<DockManagerContentPane Maximizable="false" Closeable="false" @bind-Size="Content2PaneSize">
<HeaderTemplate>
<span>content 2 header gets erased</span>
</HeaderTemplate>
<Content>
<div>
Content 2
</div>
</Content>
</DockManagerContentPane>
<DockManagerContentPane HeaderText="header 3" Closeable="false" @bind-Size="Content3PaneSize">
<Content>
<div>
content 3
</div>
</Content>
</DockManagerContentPane>
</Panes>
</DockManagerSplitPane>
</Panes>
</DockManagerSplitPane>
</DockManagerPanes>
</TelerikDockManager>The OnPaneResize (and SizeChanged) event does NOT fire when a pane is unpinned. When it flies out from the left, resizing the flyout does not fire events that would letus refresh the chart to fill the new size.
Reproduced in this REPL: https://blazorrepl.telerik.com/mfkqODwk35srscZe46
I am trying to change the orientation of the SplitPane after the DockManager has rendered but nothing changes. It seems like the parameter is not reactive.
===
ADMIN EDIT
===
A possible option for the time being is to dispose and reinitialize the DockManager when you want to change the SplitPane Orientation.
Here is a runnable sample: https://blazorrepl.telerik.com/QfYHboFl280vuIkL03.