I would like to be able to open a menu tree at a specific folder. All the reading I have done in the docs and here seem to indicate that I can use tree.openFolder to do this. However, I pass it the node in question and nothing happens. openAll() will open the entire tree but that is the only one that seems to work. I have checked in the Developer Console and I am indeed retrieving a node and passing it in. But nothing happens. The tree stays closed. Any ideas here would be appreciated. I am using SC 70RC2.
My code is below
isc.TreeGrid.create({
ID:"menuTree",
autoDraw:false,
showHeader:false,
showEdges:false,
nodeClick: function (v, n, rn) {
if(n.nodeLink) {
if(n.newWindow) {
launchURL_NW(n.nodeLink);
} else {
launchURL_CW(n.nodeLink);
}
}
},
data:isc.Tree.create({
ID:"mainMenuTree",
nodeIcon:"/icons/page.gif",
folderIcon:"/icons/folder.gif",
showOpenIcons:true,
showConnectors:true,
showFullConnectors:true,
modelType:"children",
nameProperty:"nodeTitle",
childrenProperty:"subMenuNodes",
root: {
nodeID:"1",
subMenuNodes:[
{
ID:"HomePage",
nodeID:"5",
nodeTitle:"NEDU Intranet Home Page",
nodeLink:"/home.asp",
subMenuNodes:[
{
nodeID:"10",
nodeTitle:"XO\'s Corner",
nodeLink:"/xo.asp"
},
{
nodeID:"11",
nodeTitle:"CMC",
nodeLink:"/cmc.asp",
statusLine:"Command Master Chief\'s Page"
},
{
nodeID:"12",
nodeTitle:"Diver Training",
nodeLink:"/mdv.asp",
statusLine:"Command Master Diver\'s Page"
},
{
nodeID:"60",
nodeTitle:"Watchbills",
statusLine:"Watchbills SubMenu",
subMenuNodes:[
{
nodeID:"61",
nodeTitle:"Upcoming",
nodeLink:"s:/pnma/nedu/nedu intranet/content/mdv/upcoming_watchbill.pdf",
newWindow:true,
statusLine:"Upcoming (Next Months) Watchbill"
},
{
nodeID:"62",
nodeTitle:"Current",
nodeLink:"s:/pnma/nedu/nedu intranet/content/mdv/watchbill.pdf",
newWindow:true,
statusLine:"Current Watchbill"
},
{
nodeID:"61",
nodeTitle:"Upcoming",
nodeLink:"s:/pnma/nedu/nedu intranet/content/mdv/watchbill_old.pdf",
newWindow:true,
statusLine:"Previous Watchbill"
}
] // close of Watchbills Submenu items
}, // end of Watchbills menu item
{
nodeID:"90",
nodeTitle:"Documents & Forms",
statusLine:"Documents & Forms SubMenu",
subMenuNodes:[
{
nodeID:"92",
nodeTitle:"Instructions",
nodeLink:"/documents_instructions.asp"
},
{
nodeID:"93",
nodeTitle:"Command Policy",
nodeLink:"/documents_policy.asp",
statusLine:"Command Policy Statements"
},
{
nodeID:"94",
nodeTitle:"Forms",
nodeLink:"/documents_forms.asp",
statusLine:"Command Forms"
},
{
nodeID:"100",
nodeTitle:"Task Management",
subMenuNodes:[
{
nodeID:"101",
nodeTitle:"Active Tasks",
nodeLink:"s:/pnma/nedu/nedu intranet/documents/taskmgmt/ta.pdf",
newWindow:true
},
{
nodeID:"102",
nodeTitle:"Schedule",
nodeLink:"s:/pnma/nedu/nedu intranet/documents/taskmgmt/schedule.pdf",
newWindow:true
},
{
nodeID:"103",
nodeTitle:"Deliverables",
nodeLink:"s:/pnma/nedu/nedu intranet/documents/taskmgmt/deliverables.pdf",
newWindow:true
}
] // close of Task Management submenu items
} // end of Task Management menu item
] // close of Documents & Forms submenu items
}, // end of Documents & Forms menu item
{
nodeID:"130",
nodeTitle:"Library",
subMenuNodes:[
{
nodeID:"131",
nodeTitle:"Catalog",
nodeLink:"/library_catalog.asp"
},
{
nodeID:"132",
nodeTitle:"Literature Search Request",
nodeLink:"/library_literaturesearch.asp"
},
{
nodeID:"133",
nodeTitle:"Reprint Request",
nodeLink:"/library_reprint.asp"
}
] // close of Library submenu items
}, // end of Library menu item
{
nodeID:"71",
nodeTitle:"Navy",
nodeLink:"/navy.asp"
},
{
nodeID:"72",
nodeTitle:"Diver",
nodeLink:"/diver.asp"
},
{
nodeID:"73",
nodeTitle:"Medical",
nodeLink:"/medical.asp"
},
{
nodeID:"74",
nodeTitle:"Science",
nodeLink:"/science.asp"
},
{
nodeID:"75",
nodeTitle:"Non-Regulated Hazmat",
nodeLink:"/Hazmat_appendix8.pdf",
newWindow:true
}
] // close of Home Page submenu items (main menu column)
} // end of Home Page menu item
] // close of Root submenu items
} // end of Root menu
}) // end of mainMenuTree
}); // end of menuTree
var iNode = mainMenuTree.find("nodeID","100");
mainMenuTree.openFolder(iNode);