Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get an apex tree region to expand all nodes on page load

Jeremy WebbFeb 23 2021 — edited Feb 23 2021

Hi
Using Apex 20.1
I have an apex tree region and I need to get it to expand all nodes on page load.
I have tried using the following but get the error shown
$('#myTree').treeView("expandAll");
Uncaught Error: cannot call methods on treeView prior to initialization; attempted to call method 'expandAll'
This is the first time I have really used the tree region so have not had to do this before, sure it must be easy.

This post has been answered by Jeremy Webb on Feb 23 2021
Jump to Answer
Comments
Post Details
Added on Feb 23 2021
3 comments
2,836 views