-
Notifications
You must be signed in to change notification settings - Fork 140
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
Issue with Column Order in DataGrid Column Customization #4379
Labels
Comments
elycheea
added
the
needs: design opinion
Design question needs opinion from designer
label
Feb 29, 2024
Looks like retaining column order is the intended design based on the design guidance1. Footnotes |
elycheea
moved this from Needs triage 🧐
to Needs refinement 🤓
in Carbon for IBM Products
Feb 29, 2024
elycheea
removed
the
needs: design opinion
Design question needs opinion from designer
label
Feb 29, 2024
Note, when investigating this — when we first uncheck a column, it does retain position at least in the tearsheet. May be some re-rendering that happens because we were able to replicate this behavior later. |
Yes .Retaining column order is intended and it works.
But my concern is when we hide some columns and save the selection( I mean
save to BE APIs) so when user comes back the selection is saved.
But what happens is , when I give the column order( which includes both
hidden and visible columns order ) and hidden columns in the initial
state props of DataGrid.. the order of hidden columns is not shown as per
the column order but is been pushed to the end of the list. as shown in the
screenshots attached in the bug.
Please let me know if you need any further details.
Thanks,
Marina
…On Thu, 29 Feb, 2024, 7:59 pm elysia, ***@***.***> wrote:
Looks like retaining column order *is* the intended design based on the
design guidance1
<#m_8453272440226846079_user-content-fn-1-3ee9b159a388c973d3ac59b728fb5aed>
.
Footnotes
1.
https://pages.github.ibm.com/cdai-design/pal/components/data-table/column-customization/usage#anatomy
↩
<#m_8453272440226846079_user-content-fnref-1-3ee9b159a388c973d3ac59b728fb5aed>
—
Reply to this email directly, view it on GitHub
<#4379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATD5SXPBGI2PN4NTAAXMUUDYV45K5AVCNFSM6AAAAABDSM76RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGI3DIOJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
just needs the V1 PR reviewed #4549 |
github-project-automation
bot
moved this from Needs review 👋
to Done 🚀
in Carbon for IBM Products
Mar 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What package(s) are you using?
Detailed description
Steps to reproduce the issue
columns at the end in the list .
Additional information
initialState: {
columnOrder: [
"rowIndex",
"firstName",
"someone1",
"lastName",
"age",
"visits",
],
hiddenColumns: ["lastName"],
}
Acceptance criteria
The text was updated successfully, but these errors were encountered: