vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.64k stars 730 forks source link

Rows selection when a grid expand another grid #2454

Open TheFast99 opened 10 months ago

TheFast99 commented 10 months ago

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 commented 10 months ago

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 commented 8 months ago

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.