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

groupByCollapsedGroups not collapsing on grouped columns #7337

Closed
DataSupplier opened this issue May 18, 2024 · 2 comments
Closed

groupByCollapsedGroups not collapsing on grouped columns #7337

DataSupplier opened this issue May 18, 2024 · 2 comments
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. help-wanted Issues we need or would love help from the community to resolve.

Comments

@DataSupplier
Copy link

Bootstraptable version(s) affected

1.22.6

Description

Hi mates,

I'm facing a bug or difficulties when collapsing on grouped columns.
The groupByField accepts an array, which work nice in order to group on multiple columns.
When applying the groupByCollapsedGroups, it fails to collapse on these columns.

The groupByCollapsedGroups work on a single grouped column.
Therefore I'm providing two examples,

  1. grouped and collapsed on one column (works)
  2. grouped and collapsed on two columns (fails)

The reason might be, that I'm not providing the right details, maybe you guys can help me out.
Thanks!

Example(s)

  1. https://live.bootstrap-table.com/code/DataSupplier/17672 (works)
  2. https://live.bootstrap-table.com/code/DataSupplier/17673 (fails)

Possible Solutions

No response

Additional Context

No response

@DataSupplier DataSupplier added the Bug Issues which are marked as Bug label May 18, 2024
@UtechtDustin
Copy link
Collaborator

You don't use the correct synatx.
Please check my working demo.

As you have a composite group by field you also have to composite the collapsed groups.
Does this solves you're issue ?

@UtechtDustin UtechtDustin added help-wanted Issues we need or would love help from the community to resolve. awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. and removed Bug Issues which are marked as Bug labels May 26, 2024
@DataSupplier
Copy link
Author

aaa now I see, I got it thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. help-wanted Issues we need or would love help from the community to resolve.
Projects
None yet
Development

No branches or pull requests

2 participants