Questions tagged [dijit.tree]

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.

65 questions
5
votes
1 answer

Dijit Tree filtering and search not working on ObjectStoreModel

I have created a dijit tree and a textbox and I want to filter the tree nodes based on keywords provided in textbox. I implemented the solution provided in another question but it does not seem to work. When the user enter some word in textbox the…
asim-ishaq
  • 2,190
  • 5
  • 32
  • 55
4
votes
1 answer

Dijit tree text itself is not selectable/highlightable?

I have a dijit tree and I want to be able to select or highlight the text in the tree nodes so that they can be copied/pasted. Dojo has some examples of trees here. all of which demonstrate my problem. Additionally, here is a JSFiddle with a…
Eric Alberson
  • 1,116
  • 1
  • 11
  • 23
3
votes
2 answers

Dijit.tree extension with radio buttons submitting the wrong value

I've written a class that extends dijit.Tree to include a radio button alongside each node. I'm using it in a form to show a folder tree from which the user can select a folder. Here is the code: define("my/Tree/RadioButton", …
Tim Fountain
  • 33,093
  • 5
  • 41
  • 69
3
votes
1 answer

Dijit Checkbox tree event delegation

I am trying to implement a dijit checkbox tree similar to http://thejekels.com/dojo/cbtree_AMD.html And overriding a method like this : connect.connect( tree, "_onExpandoClick", model, this,function(/*data.item*/ item) { …
Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57
3
votes
1 answer

How to disable multiple selection of nodes in dijit.Tree?

How to set selection mode single in dijit.Tree? What I mean by selection mode single is user should not be able to select multiple nodes by making use of shift key or ctrl key + mouse click on node.
TechnoCrat
  • 2,055
  • 4
  • 23
  • 35
3
votes
1 answer

Dojo JsonRest store and dijit.Tree

I'm having a some problem making JSonRest store and dijit.Tree with ForestModel. I've tried some combination of JsonRestStore and json data format following many tips on the web, with no success. At the end, taking example form here…
user1427712
  • 31
  • 1
  • 3
2
votes
1 answer

Adding an item to a dojo store using 'before' option

I've got a dijit/Tree connected to a dijit/Tree/ObjectStoreModel which is in turn connected to a dojo/store/Memory wrapped in dojo/store/Observable - essentially as per the example on the dijit/tree documentation. It's working mostly fine: I preload…
Kate
  • 1,556
  • 1
  • 16
  • 33
2
votes
1 answer

Programmatic Dijit/Tree Not Appearing in Declarative Dijit/ContentPane

Can anyone help me figure out why this works in Dojo 1.8 but not in 1.9? In 1.8, the tree is placed within the “pilotTreeContainer” contentpane. In 1.9, the tree is there if you look in Firebug but visually, it just shows a loading graphic.…
voidstate
  • 7,937
  • 4
  • 40
  • 52
2
votes
1 answer

Checkbox addition in a dojo tree

I want to implement check-boxes for my dojo tree. Checkbox option should be present against all folders of the tree hierarchy structure. Can someone suggest how can I achieve this for my below tree?
Dojo_user
  • 281
  • 4
  • 9
  • 28
2
votes
1 answer

How to Display JSON data from REST Service using dojox.grid.DataGrid (Dojo 1.8)?

I have rest service which produce JSON data below : { "root": { "branches": [ { "branch_addr": "string", "branch_telp": "string", "branch_loc": "string", "branch_dept_it": { …
alderi
  • 45
  • 1
  • 7
2
votes
1 answer

Search in dijit.Tree

In one of my projects I use a dijit.Tree control. I need to add a search to the tree and show only those nodes/leafs which have the searched term in them. However I can't seem to figure out how that can be achieved. Could anybody please help me?
cycero
  • 4,547
  • 20
  • 53
  • 78
2
votes
1 answer

dijit.Tree search and refresh

I can't seem to figure out how to search in a dijit.Tree, using a ItemFileWriteStore and a TreeStoreModel. Everything is declarative, I am using Dojo 1.7.1, here is what I have so far :
noru
  • 547
  • 2
  • 6
  • 21
2
votes
1 answer

dijit.tree how to implement a collapse all functionality using only store?

I have a lazy loading dijit.tree which I want to reuse in many places after its data has been loaded. But if I just replace the store object in the other trees with the one which contains most data, the nodes come all expanded. I want to modify the…
MozenRath
  • 9,652
  • 13
  • 61
  • 104
1
vote
1 answer

Unable to open right click menu when dojo tree node is not selected

I am using dojo 1.5. When I right click on dojo tree my right click pop up menu does not get created as first I need to select the treenode. Is there any way of selecting a treenode when you right click on the dojo tree node?
harris
  • 47
  • 6
1
vote
0 answers

Dropped item on dijit.tree is not unique?

I have this rather long pre-AMD code that creates a dijit.tree from a dojo.data.ItemFileWriteStore. It works fine in general but I've tried to implement copying of tree nodes by DnD and I'm not sure about the procedure. Currently, if I copy a tree…
DanMan
  • 11,323
  • 4
  • 40
  • 61
1
2 3 4 5