1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Tree: How to keep opened states when tree updated

Discussão em 'Angular' iniciado por vadjs, Outubro 9, 2024 às 23:32.

  1. vadjs

    vadjs Guest

    I need to keep tree nodes open/closed stated when i set new data to this.dataSource.data. New data is very same with old - it just have one or several lowest-level nodes added/removed.

    My idea is to record node expansion to ReplaySubject and replay expansion queue. It should work but it's very ugly way.

    I hope that here are have much more elegant way to solve my problem.

    Continue reading...

Compartilhe esta Página