radzen-blazor icon indicating copy to clipboard operation
radzen-blazor copied to clipboard

RadzenSplitter with lots of content freezes

Open iotalambda opened this issue 9 months ago • 0 comments

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:

  1. install 4.27.0 or later
  2. 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; }
    }
}
  1. 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

iotalambda avatar May 15 '24 22:05 iotalambda