Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making tree expanded by default #147

Open
reemokada opened this issue Sep 28, 2017 · 1 comment
Open

Making tree expanded by default #147

reemokada opened this issue Sep 28, 2017 · 1 comment

Comments

@reemokada
Copy link

I'm trying to make my tree grid expanded after data load. I initialized my_tree but when I try to call $scope.my_tree.expand_all() I got the error message undefined object regarding my_tree.
I setted the expand_level to one and it works fine, but I need to show my tree expanded and not collapsed at the beginning.
Did any one have a solution for my problem?

@urosgogic
Copy link

It works like this:

vm.treeControl = {};
$timeout(function () {
     vm.treeControl.expand_all();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants