Code Monkey home page Code Monkey logo

Comments (6)

lisaWriteJava avatar lisaWriteJava commented on July 18, 2024 1

Thank you. This seems to be working as I expect. I'll give it a try in my real data next week to be sure but I think that this puts me on the correct path.

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 18, 2024

Since the data in the example is not coming from a server, showing loading doesn't make much sense, when you have some actual server binded to the data, you might have some loading state binded with the fetch function, you can pass it to the loading prop of the Grid.

<DataGrid
  loading={dataLoading}
  {...otherProps}
/>

I've updated the example to add a 3 seconds delay on mount to simulate network latency: https://codesandbox.io/p/sandbox/inspiring-almeida-z5ct3t?file=%2Fsrc%2FDemo.js%3A27%2C29

Hope it helps.

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 18, 2024

I should have a definitive answer by this time next week if the ticket can stay open to confirm

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 18, 2024

Hello,

I was able to get some of the changes into my dev simulation and it doesn't' show the loading indicator initially. The no data does go away once the data is loaded but it shows initially. Should the no rows overlay be removed from the slots?

Here's my sandbox example

This is the actual url to the sandbox https://codesandbox.io/p/sandbox/blue-field-432zlg?file=%2Fsrc%2FCommonGridRowActions.jsx%3A898%2C37. The above is the shared link.

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 18, 2024

@lisaWriteJava I can not access the linked codesandbox, maybe the sharing permissions are not set. Can you check?

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 18, 2024

I'm sorry I've updated the permissions to public so you should be able to see now.

from mui-x.

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.