Comments (4)
In my opinion this should be handled by the library. When reading the docs it says that "Autosizing" is the default behaviour in pro- and premium-plans, so I would expect it to try to autosize on "rows" change and maybe give me an option to control this myself.
from mui-x.
I think I'd favor adding a recipe for 3.
from mui-x.
Like @Madsim said, this seems like counter-intuitive behavior to me as well. Especially since there is a loading
prop. It makes it difficult to use the default DataGrid loading functionality.
For example, if you're doing something like this:
const { data, isLoading } = useQuery(myQueryOptions);
then you need to pass in an empty array to rows
while isLoading
is true. Once the data finally fetches, the autosizing is still based on the size of your empty data set.
To me it would make sense to have a prop autoSizeOnLoad
or autoSizeOnInitialLoad
or even just have autoSizeOnMount
default to resizing only after loading
is set to false.
from mui-x.
I think I'd favor adding a recipe for 3.
Thought the same while reading ... it provides the most value, since there will be a "blank" state instead of no grid being rendered at all
from mui-x.
Related Issues (20)
- [pickers] Allow to customize the size / density of the views HOT 5
- [fields][DateField] fails to accept '22' as day keybord input in FR locale with format Do MMM YYYY HOT 2
- [question] After updating data grid to version 7, cells do not handle overflow and render ellipsis by default HOT 8
- [data grid] Nested grouping and sort by aggregation does not sort the second level HOT 6
- [charts] Rendering a Bar Chart with an empty dataset throws an error HOT 3
- [pickers] V7 LocalizationProvider not accepting AdapterMoment HOT 5
- [charts] Add Maps support
- Move internal localization hooks `useUtils`, especially `useLocaleText`, to Public API HOT 1
- [data grid] singleSelect onClose slotProp does not trigger when closed without choosing an option HOT 2
- [data grid] DataGridPremium fails tro compile HOT 4
- [charts] Pie chart center label in 7.1.1 HOT 3
- [data grid] PDF Export Option HOT 1
- [TreeView] Tree Item do not receive the item defined in `RichTreeViewProps['item']` HOT 5
- [data grid] Labels that are defined outside of hooks should be type of `ReactNode` instead of `string` HOT 2
- [tree view] recipes
- [charts] How do I create a draggable Pie Chart? HOT 8
- [data grid] Debugger pauses on caught exceptions: No row with id found HOT 4
- [data grid] Crash if user enters invalid date in filter HOT 1
- [pickers] Error: value.isValid is not a function at AdapterDayjs.isValid after v7 HOT 11
- [pickers] Cannot use format where two tokens are separated by a letter like in `YYYY-MM-DDTHH:mm:ss` HOT 1
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.