ghiscoding / slickgrid-universal

Slickgrid-Universal is a monorepo which includes all Editors, Filters, Extensions, Services related to SlickGrid usage and is also Framework Agnostic
https://ghiscoding.github.io/slickgrid-universal/
MIT License
82 stars 26 forks source link

how to update datasetHierarchical table data #1610

Closed hwlv closed 1 month ago

hwlv commented 1 month ago

Describe the bug

how to update datasetHierarchical table data

Reproduction

how to update datasetHierarchical table data

Which Framework are you using?

Angular

Environment Info

| Executable          | Version |
| ------------------- | ------- |
| (framework used)    | VERSION |
| Slickgrid-Universal | VERSION |
| TypeScript          | VERSION |
| Browser(s)          | VERSION |
| System OS           | VERSION |

Validations

ghiscoding commented 1 month ago

Did you look at the demo? It's all in the Example, it shows how to insert a new item and if you replace the entire dataset, it will refresh the grid, it should be as easy as that. However, if replacing the dataset doesn't work then you might need to force the binding to detect the changes, which you can do by using either dataset = dataset.slice() or dataset = [...dataset]

hwlv commented 1 month ago

got it . Thank you very much