0 votes
172 views
in Coach Views by (250 points)
edited by
I have used Kolban's Tree Node to create Tree and I'm trying to change Tree View by button refresh connected to Init of the service. But the tree node value is not binding to the recent value when the coach loads, Please some one help me to bind recent values to Tree Node view on the coach.

1 Answer

0 votes
by (21.5k points)
selected by
 
Best answer

Looks like the kolban tree control is not fully implemented, you can achieve this by calling clearing out the values of the tree and calling destroy of the tree and then calling this.load();

Make a copy of the tree control and on the chang() handler put the following code

try {
this._tree._itemNodesMap = {};

            // reset the state of the rootNode
            this._tree.rootNode.state = "UNCHECKED";

            // Nullify the tree.model's root-children
            this._tree.model.root.children = null;

            // remove the rootNode
            if (this._tree.rootNode) {
                this._tree.rootNode.destroyRecursive();
            }
var treeObject = dijit.byId("mytree");
if (treeObject){
treeObject.destroy();            
}            
this.load();            
} catch(error){
alert(error);
}

            
} catch(error){
alert(error);
}

by (250 points)
Thanks a lot Admin. This code works absolutely fine.

Related questions

0 votes
1 answer 611 views
0 votes
3 answers 741 views
0 votes
0 answers 58 views
0 votes
0 answers 113 views
0 votes
0 answers 131 views
0 votes
2 answers 851 views

586 questions

483 answers

87 comments

1.7k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...