Igniteui-angular: Allow to expand all rows in hierach grid

Created on 30 Jul 2019  路  4Comments  路  Source: IgniteUI/igniteui-angular

Is your feature request related to a problem? Please describe.

It is always annoying if we want to see the full content of all rows that we need to click each one to expand it.

Describe the solution you'd like

We have a button which allows to collapse all rows. It would be good if we could reuse this button to expand all rows if we hve no expanded rows. Since this can be quite a performance hit (if we lazy load a lot of rows) this should be configurable. Allowing this feature could be enabling by adding a new property
If this flag is true the behaviour of the button will be the same as the igx-grid in grouped mode

feature-request hierarchical-grid resolved 8.1.x

Most helpful comment

Yeah thats true, the user should know that this may cause problem if he has a list with thousands of entries and wants the expand them all.
We are working with smaller sets (5-40 entries) in our case so we dont have that much performance concerns there

All 4 comments

@Failender The reason why this is not implemented out of the box, is the performance consideration that you've described. If you wish, we can make it configurable as you've suggested, but this would hand off all performance considerations to the user, if they decide to turn it on.

Yeah thats true, the user should know that this may cause problem if he has a list with thousands of entries and wants the expand them all.
We are working with smaller sets (5-40 entries) in our case so we dont have that much performance concerns there

@Failender I will prioritize this item for next sprint and we can release it in a patch.

@Failender @kdinev @mpavlinov Since we will be supporting templates for the expand/collapse indicators in rows/headers and expose hgrid api鈥檚 for expand/collapse all as part of this issue - https://github.com/IgniteUI/igniteui-angular/issues/5621 you will be able to achieve this by setting custom expand/collapse header template for the hierarchical grid and call the related api on click.

Was this page helpful?
0 / 5 - 0 ratings