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

How can I close all of the expanded rows in the grid? #191

Closed
winsonet opened this issue Mar 13, 2023 · 3 comments
Closed

How can I close all of the expanded rows in the grid? #191

winsonet opened this issue Mar 13, 2023 · 3 comments
Labels
area: data-grid Issues about data grid help wanted Extra attention is needed

Comments

@winsonet
Copy link

I just want to close all the expanded rows by coding, can I do that?

Thanks!

@nzbin nzbin added help wanted Extra attention is needed area: data-grid Issues about data grid labels Mar 13, 2023
@winsonet
Copy link
Author

winsonet commented Mar 13, 2023

Just like the below example, but I don't know how to do in MtxGrid

https://stackblitz.com/edit/angular-x4vrp4?file=app%2Ftable-expandable-rows-example.html

I just want to make sure only one row can be open once time, thanks!

@nzbin
Copy link
Member

nzbin commented Mar 13, 2023

You can achieve it with custom cell and bind event by yourself. Please check the online example.
https://stackblitz.com/edit/angular-material-15-starter-x1xj4z-rsdmhq-2wrnbx?file=src%2Fapp%2Fapp.component.ts

@winsonet
Copy link
Author

oh, that's great!

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: data-grid Issues about data grid help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants