1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Tree: How to keep opened states when tree updated

Discussão em 'Angular' iniciado por vadjs, Outubro 9, 2024.

  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