Comments (4)
Have you considered adding an overlay outside of the grid? It would be the easiest way to solve your issue.
You could also fork the custom overlay example to show an error message conditionally, if applicable.
from mui-x.
Have you considered adding an overlay outside of the grid?
As in doing something like this!error ? <DataGrid.../> : <div> Error! </div>
that could work but it would be more convenient to just pass a prop. It would also make it easier to enforce an opininated way to handle errors with DataGrid to the rest of my coworkers.
from mui-x.
I don't think we would add a new prop for that purpose, you can already create a customized message overlay.
I think this is what you want: https://codesandbox.io/s/gifted-rui-c78zmf?file=/Demo.js
from mui-x.
@romgrk That's a good solution. Thanks.
from mui-x.
Related Issues (20)
- [data grid] Full featured CRUD example issues HOT 1
- [data grid] Missing `cellMouseLeave` in `apiRef.subscribeEvent` HOT 6
- [data grid] how to update column header titles when switching language without reseting data-grid state HOT 11
- [data grid] issue with using sx in GridToolbarColumnsButton HOT 3
- [data grid] What is the best way to modify the toolbar menus ? HOT 3
- [data grid] Stale Cache for filter items > 5 HOT 1
- [data grid] All grouped rows collapses when rows updating (by state, not by updateRows) HOT 2
- [fields] Handle form submit on `Enter` click with "v7" fields
- [charts] Transparent fills in area line charts overlap causing color mixing issues HOT 1
- [DateRangePicker] Stop forcing initial focus on the first section
- [data grid] slotProps ColumnsManagement is not working HOT 5
- [data grid] Noisy warning, Accessing element.ref was removed in React 19 HOT 3
- [data grid] Detail panel for focused row is "sticky" when scrolling HOT 1
- [charts] Support multiple values for border radius on bar charts
- [pickers] Add a default AM or PM to the time picker HOT 3
- [data grid] Custom Columns: How to improve usability of the Date Picker in a narrow column HOT 6
- [data grid] Unable to override default props/styling for Header HOT 2
- [pickers][DatePicker] change borderRadius of selected day for dateCalendar HOT 10
- [charts] Can we have horizontal Gauge Chart? HOT 6
- [data grid] Row grouping does not work with nested row values HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.