The trees we see in User Interfaces help sort out long, hierarchical lists. A file system is the classic example, with Windows using it in Explorer. The Dijit tree widget is like that.
Questions tagged [dijit.tree]
65 questions
0
votes
1 answer
How to set a css class for a selected node in a tree?
I am using a Dijit Tree, and I need to change the CSS style for a node when selected (focus).
Lets imagine a node is black when "deselected", and it becames red when "selected" and viceversa.
What should I change in my code?
var tree = new Tree({
…

GibboK
- 71,848
- 143
- 435
- 658
0
votes
3 answers
access dojo checked checkboxes via javascript
I am trying to access some diji.form.checkBoxes from javascript to find that checkboxes that have been checked by a user. My code is below. If I was using straight javascript I would use getElementsByName and do a for loop looking for the checked…

Brian
- 65
- 1
- 1
- 8
0
votes
1 answer
check cookie value before loading page via registrybyId set href
I have a dijit tree that when a node is clicked it loads an html page in the center content page. One of the html pages is a login page and I'd like to check a cookie to see if they have already logged on, so I can set the page appropriately if the…

pvitt
- 1,005
- 4
- 14
- 31
0
votes
1 answer
Display content inline with a dijit Tree
I'm using Dojo and would like to create a tree like structure. However, I'd like to be able to display content within the tree once the end node in a particular branch has been expanded. e.g.
top
- a branch
-- last item in this branch
[some…

Kate
- 1,556
- 1
- 16
- 33
0
votes
1 answer
How to create a tree[forest tree model] from the JSON...?
Below is my JSON. I'm trying to create a tree out of this,
I tried with the following snippet:
require(["dijit/Tree", "dojo/data/ItemFileReadStore", "dijit/tree/ForestStoreModel", "dojo/domReady!"],
function(Tree, ItemFileReadStore,…

user3271040
- 79
- 1
- 1
- 8
0
votes
1 answer
Dijit Tree not rendering as expected
I am trying to get a json data render a dojo tree.
You can see what I am doing at http://jsfiddle.net/F53Ge/38/
require(["dojo/parser","dojo/json","dojo/store/Memory","dijit/tree/ObjectStoreModel","dijit/Tree",…

bumblebee
- 131
- 1
- 11
0
votes
0 answers
Highlight only the last node of a dojo tree using lastFocused method programatically
How can I only highlight the last node of a dojo tree prpgramatically . For example : I want to highlight 'Egypt' of the hierarchy The Earth -->Africa-->Egypt programatically then how can I achieve that. I read in some dojo documents that there is…

Dojo_user
- 281
- 4
- 9
- 28
0
votes
1 answer
How to remove horizontal scrollbar in dojo tree?
Can someone please suggest me how can I remove the horizontal scroll-bar appearing at the bottom of the dojo tree structure ?
I learnt there is a .resize() function in dojo which can help but exactly I don't know how to implement this in my tree…

Dojo_user
- 281
- 4
- 9
- 28
0
votes
1 answer
How to highlight the last node of a tree in dojo programatically?
Can someone suggest me how can I highlight the last node of a tree in dojo. I tried the _onfocus() function but it isnt working. I am using dojo 1.7 version.
I want to find the last node of my tree structure based on the node id and then highlight…

Dojo_user
- 281
- 4
- 9
- 28
0
votes
1 answer
Node id of tree isnt getting published
I am trying to publish a node id*(coming from my rest services)* as per the below approach. First I am setting the value for nodeID and then I am passing it through var message to publishing it on check-box click of my dijit tree. I am able to get…

Dojo_user
- 281
- 4
- 9
- 28
0
votes
1 answer
dijit.Tree set path and scroll to selected node
Actually I'm stuck.
I'm trying to select node in dojo tree and immediately scroll to it. But I don't understand how to implement this.
next code:
this.set("path", ["root", "folder", "file"]);
this.focusNode(this.selectedNode.id);
isn't working
this…

Dima Railguner
- 173
- 5
- 15
0
votes
0 answers
Issue in dijit/dojo tree while creating folder manually
I am trying to implement a feature in my dojo tree which will allow me to create a folder manually under any folder of the dijit tree hierarchy. On right click on any folder in tree --> Add a new folder(prompt) shows up --> a new folder name is…

Dojo_user
- 281
- 4
- 9
- 28
0
votes
1 answer
Dojo - Tree in accordion is broken (while outside is ok) , Why?
I've made simple application with dojo.
I took the exact same combo tree (cbtree) and put it once inside accordion and once first on page.
I don't understand why inside the accordion I get different cbTree (it looks really bad)
Here is online…

Alophind
- 842
- 2
- 12
- 27
0
votes
1 answer
Dojo: multiple right-click Menus on a large Tree
I am trying to define multiple right click Menus on a large Tree. ( using dojo 1.8).
I've got 20+ different type of data items in the tree. For each of this data items type there is a specific right-click menu.
I've tried to attach the Menu to the…

Zebulato
- 1
- 1
0
votes
1 answer
dijit.Tree set paths JsonRestStore + ForestStoreModel
I have a JsonRestStore + ForestStoreModel Tree and it's working fine but when I try to access a node directly with the tree.set('paths', ...) function it doesn't work.
Please refer to this little example here: http://wasmonitor.com/dojotree.html
If…

rlevac
- 36
- 5