TreeView freezing the whole page

When I am using TreeView it is freezing the whole page.
To reproduce just set it with Template and Checkbox enabled, and load a few tens of nodes.

3 Replies

KR Keerthana Rajendran Syncfusion Team June 1, 2020 12:03 PM UTC

Hi Yordan, 

Greetings from Syncfusion support. 

We have checked the reported issue by rendering TreeView with Template and Checkbox enabled. TreeView is rendered with checkbox and sample is working fine in our end. Please refer to the following code used in our end.  

<SfTreeView TValue="EmployeeDetails" CssClass="custom" ShowCheckBox="true"> 
    <TreeViewFieldsSettings TValue="EmployeeDetails" Id="EmployeeId" Text="EmployeeName" DataSource="@Employee" Expanded="Expanded" HasChildren="HasChild" IsChecked="Selected" ParentID="ParentId"></TreeViewFieldsSettings> 
    <TreeViewTemplates> 
        <NodeTemplate> 
            @{ 
                var employee = ((context as EmployeeDetails)); 
                <img class="eimage" src="@UriHelper.ToAbsoluteUri($"/css/images/Employees/{@employee.Image}.png")" alt="@employee.Image" /> 
                <div class="ename">@((@context as EmployeeDetails).EmployeeName)</div> 
                <div class="ejob">@((@context as EmployeeDetails).Designation)</div> 
            } 
        </NodeTemplate> 
    </TreeViewTemplates> 
</SfTreeView> 

We have attached sample for your reference in the following link 


Template TreeView with Checkbox is rendered as shown below 
 

Please check the above sample in your end and if the issue persists, kindly share us the following details to serve you better. 

  1. Complete code snippet used in your sample.
  2. Issue occurs with specific browser or with all browsers?
  3. Syncfusion Blazor package version used in your project.
  4. If possible , modify the above sample to replicate the issue in our end.

Regards, 
Keerthana.  
 



YO Yordan June 4, 2020 04:36 PM UTC

Keerthana Rajendran [Syncfusion]
Thank You very much !


SP Sowmiya Padmanaban Syncfusion Team June 5, 2020 06:27 AM UTC

Hi Yordon,  
  
Most Welcome. We are happy that our provided solution meets your requirement. Please contact us, if you need any help from us. We will happy to assist you. 
  
Regards , 
Sowmiya.P 


Loader.
Up arrow icon