I have a component that contains a Dashboard Layout with 3 static panels. The panels can be resized, and repositioned.
As long as Panels are not repositioned, things work fine.
As soon as Panels are repositioned, the last 2 disappear, when the component's parameters are changed from the Parent. The grid also disappears.
<SfDashboardLayout @ref="@TheDashboardLayout" Columns="15" CellAspectRatio="2" CellSpacing="@(new double[]{10 ,10 })"
AllowDragging="true" ShowGridLines="true" AllowResizing="true" DraggableHandle=".e-panel-header">
@*<DashboardLayoutEvents OnDragStop="OnDragStopped" OnResizeStop="OnResizeStopped" Changed="OnLayoutChanged"></DashboardLayoutEvents>*@
<DashboardLayoutEvents OnDragStop="OnDragStopped" OnResizeStop="OnResizeStopped" ></DashboardLayoutEvents>
<DashboardLayoutPanels>
<DashboardLayoutPanel Id="@nameof(EditorState.Layout.MediaPanel)"
SizeX="@EditorState.Layout.MediaPanel.SizeX"
SizeY="@EditorState.Layout.MediaPanel.SizeY"
MinSizeX="@EditorState.Layout.MediaPanel.MinSizeX"
MinSizeY="@EditorState.Layout.MediaPanel.MinSizeY"
Row="@EditorState.Layout.MediaPanel.Row"
Col="@EditorState.Layout.MediaPanel.Col"
MaxSizeX="@EditorState.Layout.MediaPanel.MaxSizeX"
MaxSizeY="@EditorState.Layout.MediaPanel.MaxSizeY">
<HeaderTemplate><div>Media</div></HeaderTemplate>
<ContentTemplate>
<div class="p-1 w-100 h-100 overflow-auto">
<h2>
Stuff 1
</h2>
</div>
</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Id="@nameof(EditorState.Layout.TextPanel)"
SizeX="@EditorState.Layout.TextPanel.SizeX"
SizeY="@EditorState.Layout.TextPanel.SizeY"
MinSizeX="@EditorState.Layout.TextPanel.MinSizeX"
MinSizeY="@EditorState.Layout.TextPanel.MinSizeY"
Row="@EditorState.Layout.TextPanel.Row"
Col="@EditorState.Layout.TextPanel.Col"
MaxSizeX="@EditorState.Layout.TextPanel.MaxSizeX"
MaxSizeY="@EditorState.Layout.TextPanel.MaxSizeY">
<HeaderTemplate><div>Text Content</div></HeaderTemplate>
<ContentTemplate>
<div class="p-1 w-100 h-100 overflow-auto">
<div class="border">
<h2>
Stuff 2
</h2>
</div>
</div>
</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Id="@nameof(EditorState.Layout.AuxPanel)"
SizeX="@EditorState.Layout.AuxPanel.SizeX"
SizeY="@EditorState.Layout.AuxPanel.SizeY"
MinSizeX="@EditorState.Layout.AuxPanel.MinSizeX"
MinSizeY="@EditorState.Layout.AuxPanel.MinSizeY"
Row="@EditorState.Layout.AuxPanel.Row"
Col="@EditorState.Layout.AuxPanel.Col"
MaxSizeX="@EditorState.Layout.AuxPanel.MaxSizeX"
MaxSizeY="@EditorState.Layout.AuxPanel.MaxSizeY">
<HeaderTemplate><div>Attachments</div></HeaderTemplate>
<ContentTemplate>
<div class="p-1 w-100 h-100 overflow-auto">
<h2>
Stuff 3
</h2>
</div>
</ContentTemplate>
</DashboardLayoutPanel>
</DashboardLayoutPanels>
</SfDashboardLayout>
Is there a way to prevent this from happening? I have tried to use the Dashboard.Refresh() method, but that doesn't resolve the problem.