Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DaigramView not rendering correctly in .NET 10 (Read 112 times)
davel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Location: USA
Joined: Dec 3rd, 2007
DaigramView not rendering correctly in .NET 10
Mar 12th, 2026 at 8:29pm
Print Post  
I was able to build and run the sample project BlazorTableNodes locally. I pulled the same diagram code from that project and inserted it into another WASM project, but instead of .NET 8 it the project is .NET 10. the Diagram is created, but none of the properties are set - all that shows is the scroll bar.
Are there any known issues with .NET10?
Can you think of anything else that might cause this kind of issue?

Thanks, David
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: DaigramView not rendering correctly in .NET 10
Reply #1 - Mar 12th, 2026 at 8:57pm
Print Post  
We had to create dotnet 9 specific build last year due to asp.net core libraries incompatibilities between 8 and 9. Our developer will check if we need to do that for dotnet 10 too in next couple of days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: DaigramView not rendering correctly in .NET 10
Reply #2 - Mar 13th, 2026 at 10:28am
Print Post  
Quote:
all that shows is the scroll bar


If you mean DiagramView's height is 0, that could actually happen if you copy CSS classes and files from the sample project, but they are not included in your new project's bundle. Please find this comment in index.html and make sure the link element is not commented:

Code
Select All
<!-- If you add any scoped CSS files, uncomment the following to load them
<link href="MinApp.styles.css" rel="stylesheet" /> --> 



We've also uploaded a new nuget package that includes dotnet10 builds of the assemblies just in case:

https://www.nuget.org/packages/MindFusion.Diagramming.Blazor/2.1.2-beta1

For reference, please see the attached project targeting .NET 10.

Regards,
Slavcho
Mindfusion
  

MinApp.zip ( 8 KB | 20 Downloads )
Back to top
 
IP Logged
 
davel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Location: USA
Joined: Dec 3rd, 2007
Re: DaigramView not rendering correctly in .NET 10
Reply #3 - Mar 17th, 2026 at 6:24pm
Print Post  
Thanks very much for your quick reply. With your help, looking at the demo app MinApp, I was able to determine the issue in my code.

Turns out my CSS styles were not scoped correctly for Blazer. This caused the DiagramView to have a height of 0 and it rendered with just a scrollbar.  Once I address the CSS issue (one easy way is to add the styles to app.css) everything rendered  and worked as expected. I thought I'd include my issue in case it helps someone else.

I am having another issue related to deployment, but I'll create another post for that so it can be tracked properly.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint