dojo tree with checkboc

Ads
 

dojo tree with checkboc

View Answers

October 16, 2008 at 3:17 PM


October 16, 2008 at 4:16 PM

hi,

<html>
<head>
<title>Dojo Tree Widget Test</title>

<style>
.treeCheckBox {
height: 14px;
margin: 0px;
padding: 0px;
border: 1px;
vertical-align: middle;
}
</style>

<script type="text/javascript" src="dojo.xd.js" djConfig="parseOnLoad: true"></script>

<script type="text/javascript" src="../../../dojo.js"></script>


<!-- include separately to make sure everything is loaded until next piece -->
<script type="text/javascript">
dojo.require("dojo.lang.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.Tree");
dojo.require("dojo.event.*");

dojo.hostenv.writeIncludes();
</script>
<script>

function addCheckBox(message) {

var node = message.source;

var checkBox = document.createElement('input');
checkBox.setAttribute('name', node.objectId);
checkBox.setAttribute('type', 'checkbox');

dojo.html.setClass(checkBox, 'treeCheckBox');

dojo.dom.insertBefore(checkBox, node.titleNode);
}

// need to subscribe BEFORE dojo.addOnLoad
// BEFORE widgets are made.
dojo.event.topic.subscribe("tree/createDOMNode", addCheckBox);


</script>

</head>
<body>

<h2>Tree with checkboxes</h2>



<form method="get">

<div dojoType="Tree" widgetId="tree">
<div dojoType="TreeNode" title="Item 1" objectId="1">

<div dojoType="TreeNode" title="Item 1.1" objectId="1.1"></div>
<div dojoType="TreeNode" title="Item 1.2" objectId="1.2">
<div dojoType="TreeNode" title="Item 1.2.1" objectId="1.2.1">
<div dojoType="TreeNode" title="Item 1.2.1.1" objectId="1.2.1.1"></div>
</div>
<div dojoType="TreeNode" title="Item 1.2.2" objectId="1.2.2"></div>
</div>
</div>
<div dojoType="TreeNode" title="Item 2" objectId="2"></div>

</div>

<input type="submit" value="Press to see checked boxes in the URL-string of your browser">

</form>

</body>
</html>
------------------------------

Thanks

Ads









Related Tutorials/Questions & Answers:
Dojo Tree
Dojo Tree          In this section, you will learn about Dojo Tree widget. We will explain you how to create Tree control using Dojo Tree Widget.  Test the sample online
Dojo Tree
Dojo Tree          In this section, you will learn about the tree and how to create a tree in dojo.  Try Online: Tree Tree :  The tree is a GUI that helps to lists
Advertisements
Dojo
Dojo  how the Dojo works   Hello Friend, Please visit the following link: Dojo Tutorials Thanks
Dojo
Dojo   I have a text box built in dojo and i am unable to select the contents of this text box in IE. In mozilla it works fine.Please suggest
DOJO, DOJO 1.0.2 tutorial, DOJO Tutorial
; Dojo Tree In this section, you will learn about the tree and how to create a tree in dojo. Try Examples Online...Dojo 1.0.2 Tutorial        
Tree
Tree  print("code sample");1) Write Java code to create the following tree using new Tree state- ments: 1
Dojo Tree
Dojo Tree           In this section, you will learn about the tree and how to create a tree in dojoTree :  The tree is a GUI that helps
dojo preview
dojo preview  I m using dojo framework to upload my ads....how to preview ads after it is uploaded?   Hi Friend, Please visit the following link: http://www.roseindia.net/dojo/ Thanks
DOJO Tutorial
DOJO Tutorial In this section we will learn about DOJO. This section will describe you the aspects of DOJO viz. what is DOJO, features of DOJO, benefits of DOJO, Dojo Toolkit, how to install DOJO, released versions of DOJO. What
Ajax Dojo Tutorial
;    Dojo Tree In this section, you will learn about the tree and how to create a tree in dojo.    Dojo...Ajax Dojo Tutorial       
DOJO full form
DOJO full form  what is the full form of dojo
tree view
tree view  display a tree view in flex?nodes will be in the form
ModuleNotFoundError: No module named 'dojo'
ModuleNotFoundError: No module named 'dojo'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dojo' How to remove the ModuleNotFoundError: No module named 'dojo' error
ModuleNotFoundError: No module named 'dojo'
ModuleNotFoundError: No module named 'dojo'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dojo' How to remove the ModuleNotFoundError: No module named 'dojo' error
ModuleNotFoundError: No module named 'dojo'
ModuleNotFoundError: No module named 'dojo'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dojo' How to remove the ModuleNotFoundError: No module named 'dojo' error
Benefits of Dojo
Benefits of Dojo         Benefits of Dojo Following are the benefits of Dojo. Associative arrays... evolved date, math, and string libraries W3C DOM support in the Dojo
Benefits of Dojo
Benefits of Dojo         Benefits of Dojo Following are the benefits of Dojo. Associative arrays... evolved date, math, and string libraries W3C DOM support in the Dojo
binary tree
binary tree  how to count no. of nodes in a binary tree for mlm if it complet tree or incomplet tree in php using mysql db
Binary tree
Binary tree  a. Construct a method to implement a binary tree using an array. b. Implement the binary tree to store numbers in sorted order
binary tree
binary tree  can a binary tree be implemented with out comparing...://www.roseindia.net/java/java-get-example/java-binary-tree-code.shtml http://www.roseindia.net/java/java-get-example/java-binary-tree-insert.shtml
Install Dojo
Install Dojo         In this section we will learn how to download and install Dojo in your web application. You can easily add Dojo support into your existing application
Introduction to Dojo and Tips
Introduction to Dojo and Tips     ... need to use some of the features found in dojo. In this tips, learn about the dojo and its directory structure. The purpose of this tips, for a new user learn
Dojo TimeSpinner
Dojo TimeSpinner         In this section, you will learn about the dojo TimeSpinner. This is same as the dojo NumberSpinner. But the NumberSpinner only worked
Nitobi Tree
Nitobi Tree       Nitobi Tree Nitobi Tree, the Ajax component of User Interface Suite is used... coding and effort. Nitobi Tree adds just like folder view in Windows
How to design a tree, design a tree, a tree
How to design a tree       Be alert to learn a simple technique to make a tree example... as you need. Tree: Choose this "4c2228" color and Pen Tool (P key
ModuleNotFoundError: No module named 'axelrod_dojo'
ModuleNotFoundError: No module named 'axelrod_dojo'  Hi, My Python... 'axelrod_dojo' How to remove the ModuleNotFoundError: No module named 'axelrod_dojo' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'axelrod_dojo'
ModuleNotFoundError: No module named 'axelrod_dojo'  Hi, My Python... 'axelrod_dojo' How to remove the ModuleNotFoundError: No module named 'axelrod_dojo' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-dojo'
ModuleNotFoundError: No module named 'django-dojo'  Hi, My Python... 'django-dojo' How to remove the ModuleNotFoundError: No module named 'django-dojo' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'dojo-beam'
ModuleNotFoundError: No module named 'dojo-beam'  Hi, My Python... 'dojo-beam' How to remove the ModuleNotFoundError: No module named 'dojo... have to install padas library. You can install dojo-beam python with following
ModuleNotFoundError: No module named 'dojo-google'
ModuleNotFoundError: No module named 'dojo-google'  Hi, My Python... 'dojo-google' How to remove the ModuleNotFoundError: No module named 'dojo-google' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'dojo-jdbc'
ModuleNotFoundError: No module named 'dojo-jdbc'  Hi, My Python... 'dojo-jdbc' How to remove the ModuleNotFoundError: No module named 'dojo... have to install padas library. You can install dojo-jdbc python with following

Ads