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

select node in onRendered event callback failed. #116

Open
GikkiAres opened this issue Jul 1, 2022 · 0 comments
Open

select node in onRendered event callback failed. #116

GikkiAres opened this issue Jul 1, 2022 · 0 comments

Comments

@GikkiAres
Copy link

GikkiAres commented Jul 1, 2022

select node in onRendered event callback failed.
image
Error is not initialized.
But if call after 200ms,suceeded.
It seems the tree is not initialized,event the render event is sended.

Relative code is here:

        onRendered: function(event, data) {
            console.log(`\nTreeView/Rendered\n`);
            let firstRootProjectNode = data[0];
            console.log(`First root project is:\n${JSON.stringify(firstRootProjectNode)}\n`);
            $('#tree').treeview('selectNode', [
                [firstRootProjectNode], { silent: false }
            ]);
        }
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

1 participant