Comments (6)
Hi, first bug report here. Thanks for a cool product.
We just recently started using X Data Grid Premium and I was going to try and update from version 6.19.8 to 7.1.0.
In 6.19.8 I seem to be able to get above to work as expected. But the sorting does no longer seem to work correctly in 7.0.0 or later.
from mui-x.
Hey @mdoverhag and thanks for raising an issue here.
I am glad you like the product! ✨
The use case you have there is pretty advanced.
I just tried it and you are right. The second sorting does not work.
This clearly is a regression, so I will add this to our board
v6: https://stackblitz.com/edit/github-zzppol-p1ndqj
Screen.Recording.2024-04-05.at.10.55.09.mov
v7: https://stackblitz.com/edit/github-zzppol-vhewiz
Screen.Recording.2024-04-05.at.10.52.58.mov
from mui-x.
Thanks for the prompt reply @michelengelen 👍 I'll keep a look out here then!
from mui-x.
Hi @mdoverhag
I checked both v6 and v7 (added links to demos in #12684 (comment)) and it seems to me that the behavior in v7 is correct.
In v6, sorting on the grouping column was only applied to the first level of the rows:
v6 | v7 |
---|---|
This was fixed #9679
We're grouping by Year-Month (have a separate string column for that). Then we group by sales person. We'd like to order the expanded Year-Month by the sales person with the most sales at the top.
Did you consider using multiple grouping columns for your use case?
Here's a working demo with Data Grid v7 https://stackblitz.com/edit/github-zzppol-u2w6mf
from mui-x.
Hi @cherniavskii,
Thank you for making the videos comparing v6 and v7. I get it, considering we're sorting on Grouping, the second level is also technically part of that column and it should be sorted alphabetically. 👍
Thanks for the suggestion on multiple grouping. We'll give that ago!
from mui-x.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@mdoverhag: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
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.