I have two questions. Please help.
First, when exporting tree to excel, a '-' character is appended.
Can you change this character to another character?
The second is to create a function that expands only to level 2 nodes among all nodes in the tree and collapses below that level. Which method is the best way? Wouldn't it be better to collapse all nodes and then use expandTo to show level 2?
datagrid = this.getData();
var target = 2;
var targetLevel = target -1;
var targetItem = [];
$.each(datagrid,function(i,v){
if(targetLevel > v.pq_level){
targetItem.push(v);
}
});
var tree = this.Tree();
tree.collapseAll();
if(targetItem.length > 0){
tree.expandNodes(targetItem);
}