Connection is Lost - Nothing is displayed

Hello,
I have created a new razor page in which I am using the EjsDiagram component and I am using a NodeTemplate with a custom html. At the first loading everything is working fine, however when I am changing menu(and navigate to a different razor page) and then I navigate back to the page with the EjsDiagram component I receive the message "Attempting to reconnect to the server..." and nothing is displayed.

Please note that when I have a single node only, this issue appears when I navigate between the two menus multiple times (6-7 times) while when I have 6 nodes the issue appears directly.

I have replicated the issue also with your sample component 
https://blazor.syncfusion.com/demos/Diagrams/ComplexShapes?theme=bootstrap4

Can you please advice?




3 Replies

SK Suganthi Karuppannan Syncfusion Team February 27, 2020 11:42 AM UTC

Hi Stephanie Koronidou,    
    
If the data is load more than 32 KB, then the UI breaks error will occur. Please refer to the below link for more information.     
    

Please use the below code snippet in the “Startup.cs” file to resolve the UI breaks.  
  
    
public void ConfigureServices(IServiceCollection services)    
        {    
….
services.AddServerSideBlazor().AddHubOptions(o =>   
 
                  {    
                    o.MaximumReceiveMessageSize = 102400000;    
                  });    
}    
  
    
    
Regards,    
Suganthi K. 



SK Stephanie Koronidou February 28, 2020 10:36 AM UTC

Thanks a lot for your assistance! 


SK Suganthi Karuppannan Syncfusion Team February 28, 2020 12:08 PM UTC

Hi Stephanie Koronidou, 
 
Most welcome. Please let us know if you need any other assistance 
 
Regards, 
Suganthi K. 


Loader.
Up arrow icon