DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.08k stars 382 forks source link

Select rows recursively when using Tree Table #1988

Open ozandogrultan opened 5 years ago

ozandogrultan commented 5 years ago

I'm using ...

Description

An option to TableTreeColumn to select child rows recursively on row select, maybe something like selectRowsRecursive prop

ushkal commented 5 years ago

Hi @dogrultan,

Thank you for this suggestion, we will consider implementing it in the future.

gregfenton commented 4 years ago

If taking this on, consider a tri-state for selection: full, partial, none.

In a tree of:

a--+
   +-- b --+
   |       +-- ba
   |       +-- bb
   +-- c

Selecting b would set: full: b, ba, bb partial: a (only some decendants are selected) none: c (left unchecked)

Would be nice to have options for:

BTW: I'm implementing this type of behaviour via <SelectionState selection={selected} onSelectionChange={handleSelected} />, with my own control of selected via handleSelected. But it is a lot of grunt work, and I can't implement the "partial selection".