mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

Maintaining partial selection on parent when all chlidren are selected #1180

Open lorenzopt opened 6 years ago

lorenzopt commented 6 years ago

I have a requirement that if a parents children are selected, then the parent should take the partial, '-', selection state. This partial state should apply to its ancestors as well. Is this possible with SlickGrid?

As an example, this is what I need. parent1(-) parent2(-) child1(-) child2(x) child3(x)

What has happened here is that both child2 and child3 were selected. So their parent, parent2 should take the partial state along with its parent, parent1. This should only occur when the children are selected. When the parent is selected, all children should be selected and the parent should be fully selected (x). Thanks

6pac commented 6 years ago

Have a look here: https://github.com/6pac/SlickGrid/issues/165

This repo is no longer maintained.