Hello. Could you help me with this problem, please?
I have context menu with button “test”:
function context_menu(menuitemId, type) {
var data = tree.contextID.split(““);
if(menuitemId.split(””)[0]==“test”) {
var parent= tree.getParentId(data[0]);
alert(parent);
tree.selectItem(1);
tree.focusItem(1);
return true;
}
}
OK, the first (alert) is only for context menu functional testing. It tells me, that context menu works fine. But in fact, i need select node (for example id=1). Why selectItem and focusItem doesn’t work? And I have this problem with more methods. Thanks