radzen-blazor
radzen-blazor copied to clipboard
RadzenSplitter with lots of content freezes
Describe the bug Since 4.27.0 RadzenSplitter freezes when there's certain complex content on the panes.
To Reproduce Steps to reproduce the behavior:
- install 4.27.0 or later
- create a page:
@page "/"
<div style="width: 800px; height: 600px">
<RadzenSplitter>
<RadzenSplitterPane Style="background: red">
<RadzenDataGrid TItem=@Item Data=[] Count=0 AllowFiltering>
<Columns>
@for (var i = 0; i < 100; i++)
{
<RadzenDataGridColumn TItem=@Item Property=@nameof(Item.Property) Title="Property" />
}
</Columns>
</RadzenDataGrid>
</RadzenSplitterPane>
<RadzenSplitterPane Style="background: green">
<RadzenDataGrid TItem=@Item Data=[] Count=0 AllowFiltering>
<Columns>
@for (var i = 0; i < 100; i++)
{
<RadzenDataGridColumn TItem=@Item Property=@nameof(Item.Property) Title="Property" />
}
</Columns>
</RadzenDataGrid>
</RadzenSplitterPane>
</RadzenSplitter>
</div>
@code {
class Item
{
public string Property { get; set; }
}
}
- Move the splitter couple of times -> it will freeze and memory keeps getting allocated more and more
Expected behavior Do the same using 4.26.1 -> everything works smoothly.
Desktop (please complete the following information):
- Browser: Firefox, Edge, Chrome