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

Rows selection when a grid expand another grid #2454

Open
TheFast99 opened this issue Oct 16, 2023 · 2 comments
Open

Rows selection when a grid expand another grid #2454

TheFast99 opened this issue Oct 16, 2023 · 2 comments

Comments

@TheFast99
Copy link

TheFast99 commented Oct 16, 2023

Hi

I have a main grid with expandColumn.
When i expand, there is an other grid (I'll call it the sub grid).
The problem is when I expand the second line to show the "sub grid", then i select the first line of the sub grid, the first line of the main is also selected.
I know it's about the attribute "index" in html.

I'd like to know if there is way to change "index" value, or to not authorize the selection of grid's line.

Thanks

@TheFast99
Copy link
Author

Same problem when I try to resize a column of the subgrid.
It resize the column of the main grid.

The problem is about nested grids management with the expander

@vitmalina
Copy link
Owner

Well, I would recomend not to use nested grids as it causes issues. There is a way to do a tree like grid, see here https://w2ui.com/web/demos/#/grid/7

For the selection issue. I think if you add stopPropagation it will fix the issue. If you can create jsFiddle with the problem, I will help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants