Hi,
I am using Apex5. I want to show a tree/hierarchical structure where user can multi-select values and submit it to save to Database.
How can I achieve that? I don't see any setting for multi-selection.
I tried the following, but it doesn't work -
$("#PRDS").treeView("option","multiple", "true");
Also, on selection of a node i wanted to do some action, Added following to page javascript but no luck
var l$Tree = $("#PRDS div.tree");
$.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){
}
It gives error in log: Uncaught Error: cannot call methods on treeView prior to initialization; attempted to call method 'option'(…)
Even after adding this condition:
if (typeof l$Tree != 'undefined' && l$Tree) {
$("#PRDS").treeView("option","multiple", "true");
PRDS is static ID of Region
I wrote above in On Page Load JS.