debabratapatra / angular-tree-grid

Angular 10 Tree Grid
https://curiouslinks.com/pages/angular-tree-grid/demo
MIT License
31 stars 17 forks source link

Row expanded by default #10

Closed dpasyutin closed 5 years ago

dpasyutin commented 5 years ago

Hi! It seems that all rows are collapsed by default on initial load. Is it possible to have specific row(s) expanded by default? Thanks

debabratapatra commented 5 years ago

I think yes. Check this example. Check documentation for expandRow.

dpasyutin commented 5 years ago

Ok, I managed to do what I want by calling expandRow() from the component's ngAfterViewInit(). Thanks for the pointer.