Skip to content
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

[data grid] Server tree data checkboxSelection style init #14954

Closed
wang97111 opened this issue Oct 14, 2024 · 2 comments · Fixed by #14956
Closed

[data grid] Server tree data checkboxSelection style init #14954

wang97111 opened this issue Oct 14, 2024 · 2 comments · Fixed by #14956
Assignees
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature

Comments

@wang97111
Copy link

wang97111 commented Oct 14, 2024

Steps to reproduce

https://codesandbox.io/p/sandbox/sweet-shirley-gt5xtc?file=%2Fsrc%2FDemo.js%3A70%2C25

Steps:

  1. Server-side tree data Grid (checkboxSelection true configuration) init
  2. checkbox shows the selected style

Here's a picture with effect:

image

Current behavior

checkbox shows the selected style

Expected behavior

Checkbox shows unchecked style

Initialization is like this:
image

Context

I'm sorry for asking such a rude question. I'm not sure if this is a style issue or a design issue.
Or how can I modify this part?

After initialization, I confirmed that rowSelectionModel is empty and the checkbox is displayed as selected. Will it mislead the user that a row has been selected?

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Server-side tree data, checkboxSelection

@wang97111 wang97111 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 14, 2024
@MBilalShafi MBilalShafi added component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 14, 2024
@MBilalShafi MBilalShafi self-assigned this Oct 14, 2024
@MBilalShafi
Copy link
Member

Thanks @wang97111 for reporting the issue, it indeed is an issue when there are no children for a particular group node.
Raised a fix: #14956

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@wang97111 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants