-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataGrid grouping example confusing #5339
Comments
I was just testing this. Yea I was confused at first also. The thing is, only 10 records are displayed at a time from a total of like 500. If you order by Gender, well you get only the first gender records, so other buckets do not show as there's no records for the other buckets in this page. This seems correct, but maybe a little confusing indeed. We can indeed change the example to just handle like a few records which should be more clear. But I'm thinking if we should do anything else here to be more clear when there's alot of records? @stsrki any thoughts? |
If you use ReadData mode, then this is how it behaves, as we don't see all the records. With ReadData, the developer is responsible for the proper fetching and grouping of data. On the other hand, if this is in memory, then it is definitely wrong. |
It's our docs: Why do you say it's definitely wrong? Are you jumping the gun? Did you understand the "issue" 100%? If you order by gender which is the column the data is being grouped on. If you say it's definetly wrong, what do you think should happen?
|
I see now. Didn't understand that problem is on our demo. It seems like a bug, indeed. Would it help if we enabled pagination? That way users would see that there is more data available. |
Right It seems like a bug, but I am thinking that's it. It just seems like it. |
I was playing with the first example of page: https://blazorise.com/docs/extensions/datagrid/features/grouping
![image](https://private-user-images.githubusercontent.com/76042577/309308439-dbeaa532-1b7a-40b9-bf36-a15a1d3e4ee8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MzkzNjUsIm5iZiI6MTcxOTYzOTA2NSwicGF0aCI6Ii83NjA0MjU3Ny8zMDkzMDg0MzktZGJlYWE1MzItMWI3YS00MGI5LWJmMzYtYTE1YTFkM2U0ZWU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDA1MzEwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3M2JiNmRkZDY3YjRkN2Y0MGEzOTkxMWMxZGY4MDAwZWYwMjBhZTY1NWM1NmVmNTJkNTJiMzBiZjhiZDhhMzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2D6tGBLChII9Qzu5q13rjhBDnmacyIHPAQfdBudzj-8)
When you sort on the gender only one gender-group is displayed. When you remove the sorting on the gender you can see all gender-groups.
At first glace this looked lik a bug. But looking further I see, that the visible rows are a subset of the rows of the datasource. So you don't see the same rows when you change the sorting. This is very confusing to me.
I would suggest to adjust the example so that every time the same rows are shown.
The text was updated successfully, but these errors were encountered: