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)
- [charts] `categoryGapRatio` & `barGapRatio` is not a known property of `ChartXAxis` HOT 5
- [charts][docs] Need to document how to create a custom tooltip axisContent HOT 5
- [data grid] Change child table width on change of parent table HOT 2
- [data grid] tree collapses when controlled row selection is used HOT 4
- [data grid] DataGridPremium not working with actions column type HOT 3
- [data grid] Add more filter operators
- [LineChart] Latest version prints React warnings HOT 2
- [docs] LineChart stackblitz link creates a broken application HOT 1
- [charts] labels on YAxis have wrong position when direction is RTL on barchart and line chart HOT 4
- [charts] line chart tooltip hover issue HOT 3
- [tree view] Circular Structure in JSON HOT 3
- [data grid] `CssBaseline`, `Stack` and adding a Border to a DataGrid causes the DataGrid to Infinitely expand Vertically HOT 4
- [data grid] Checkbox selection with tree data HOT 1
- [fields] on Android: deleting the date template is possible and breaks the component HOT 4
- [Data Grid] Header Filters breaks if filterOperators is set to undefined HOT 1
- [data grid] Adding Textfield to Datagrid HOT 2
- [data grid] Valueparser not called when clearing cell HOT 2
- [charts] `onMarkClick` not working HOT 5
- [question] Can you help me adding code for the ticket https://github.com/mui/mui-x/issues/13298 HOT 2
- [data grid] Shift + Arrow Keys Not Selecting Correct Rows After Independent Row Selection HOT 2
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.