I want to display 2 or 3 panes in a splitter but after hiding the middle pane and showing it again its position is not saved, it appears at the end of the splitter as per the example below.
What is the best way to keep pane order ?
<div style="width: 500px; height: 300px; border: 1px solid red;">
<TelerikSplitter @ref="ts" Width="100%" Height="100%" Orientation="@SplitterOrientation.Horizontal">
<SplitterPanes>
<SplitterPane Size="20%" Collapsible="true">
<div>left</div>
</SplitterPane>
@if (bunique)
{
<SplitterPane Size="10%" Collapsible="true">
<div>middle</div>
</SplitterPane>
}
<SplitterPane>
<div>right</div>
</SplitterPane>
</SplitterPanes>
</TelerikSplitter>
</div>
@code{
bool bunique = false;
Telerik.Blazor.Components.TelerikSplitter ts;
protected override void OnAfterRender(bool firstRender)
{
if (firstRender)
{
if (!bunique)
{
bunique = true;
StateHasChanged();
}
}
}
}