Coder Social home page Coder Social logo

Comments (3)

ScarletKuro avatar ScarletKuro commented on May 28, 2024 1

I see you chose to move all of the razor pages into the WASM project.

It depends on the interactive mode.
If it's auto mode then there will be two projects: client and server, where the most razor pages should be located in the client project.Client and server both shares the services and the pages.
If it's just interactive server then there won't be the client part and all pages will be in the server.
If it's interactive WASM then you also get two projects. Server (asp.net core) that basically hosts your WASM and client that will carry on all blazor related things. Unlike the first one client doesn't share with the server, server is just playing the nginx role for the client.

from mudblazor.

ScarletKuro avatar ScarletKuro commented on May 28, 2024

Hi.
Is this Auto mode you are trying to achieve? You didn't specify what interactivity you desire.
If it's auto then the setup is not correct, this is correct one
MudDataGrid-FormEditBug-main.zip

from mudblazor.

mc-pez avatar mc-pez commented on May 28, 2024

Hi. Is this Auto mode you are trying to achieve? You didn't specify what interactivity you desire. If it's auto then the setup is not correct, this is correct one MudDataGrid-FormEditBug-main.zip

Thank you for your response. I hadn't considered render mode affecting it, but it makes sense as I've thought through it based on what you provided. (I'm still wrapping my head around the implications of the different render modes in .NET 8.)
I see you chose to move all of the razor pages into the WASM project. Then the Mud Providers are there and available to the counter page I'd tried adding a data grid to.
I just tried a different approach of simply copying the MudProvider tags over to my razor page that's in the WASM project, but also leaving them in the MainLayout.razor page of the server project. I believe that would support still being able to have a mixture of pages in a site that are either client side or server side rendered. And it lets me stick with the project structure provided out of the box with the Blazor Web App template.
Feel free to offer a counter argument if you see issues with that approach.
And thanks again for the help! I do wish the MudBlazor documentation had something about the implications of render modes, but also understand that may fall more in the grounds of just having a deeper understanding of render modes in .NET 8.

from mudblazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.