We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bug with GetTreeData() and tree with a lot of items

Thread ID:

Created:

Updated:

Platform:

Replies:

147945 Sep 28,2019 04:23 PM UTC Sep 30,2019 07:16 AM UTC Blazor 1
loading
Tags: TreeView
Elio
Asked On September 28, 2019 04:23 PM UTC

Hi,
I Discovered bug with TreeView with a lot of items inside.
When I call GetTreeData()  the server disconnect and after 2-3 minutes I have an error on Visual Studio saying "Task Cancelled".
In the attachment you can find a sample

Attachment: SynfusionTest_9005186f.zip

Kanagambigai Murugan [Syncfusion]
Replied On September 30, 2019 07:16 AM UTC

Hi Elio, 

Good day to you. 

We have checked the reported issue at our end. In Server side Blazor projects, if we are using a large amount of data to render items as in this sample or in general, we need to add below configuration in the startup.cs file to avoid the below exception. 

Exception 
fail: Microsoft.AspNetCore.SignalR.HubConnectionHandler[2]  
      Error when processing requests.  
System.IO.InvalidDataException: The maximum message size of 32768B was exceeded.   
The message size can be configured in AddHubOptions.  

               
Configuration 
services.AddServerSideBlazor().AddHubOptions(o => 
            { 
                o.MaximumReceiveMessageSize = 102400000; 
            }); 

We have modified your sample. 


Kindly check the above sample and get back to us if you need any further assistance. 

Regards, 
Kanagambigai M. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon