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
0
votes
1 answer

dijit.Tree : Handler expand/collapse event

In my APP. Need to use Lazy Loading, so I have to handler the expand event. I'm using dijit.Tree on Dojo library. In the document API doesn't have onCollapse/onExpand event. I have tried to handler onClick event, The event was fired but not well at…
OammieR
  • 2,800
  • 5
  • 30
  • 51
0
votes
1 answer

File Explorer using Dojo Tree from an Array

I have an array of file names/paths. Lets say it contains: File1.txt Folder1/File2.txt Folder1/File3.txt Folder2/File4.txt Folder3/Folder4/File5.txt Folder3/File6.txt NewFile.txt Now I want to create a Dojo Tree which basically displays this…
Naveen
  • 6,786
  • 10
  • 37
  • 85
0
votes
1 answer

dijitt.Tree: Styling Toplevel Entries only

I'm using dijit/Tree with data based on a large, hierarchical JSON String. So far it works like a charm. Even the styling with CSS looks good, but now I have to change the style only for the toplevel elements. Whats the best way to select those…
Marcus Loy
  • 1
  • 1
  • 2
0
votes
1 answer

Failure to trap dijit.Tree "onclick"

I've read several examples of handling onClick for dijit.Tree.. in particular this one seems to tell me all I need: dojo how to override dijit class method However, for some reason my handler gets called when my page first loads, and never when I…
0
votes
1 answer

How to set a css class for a yet to be display node?

I am using a Dijit Tree, and I need to change the CSS style for a node based on its item property. The following code fails if the node has not been displayed yet (i.e. node is undefined) : var node = this.tree.getNodesByItem(item); if (node[0]) { …
vegemat
  • 75
  • 1
  • 6
0
votes
1 answer

I want JAWS to tell the user what kind of node they are in while navigating the dijit.Tree

We have a dijit.Tree that indicates a node type by using an icon. The icon is a unique indicator that tells the person this node is a "book" or a "DVD" or a "magazine" for example. dijit renders the icon as a background image in CSS which we know…
CCR
  • 3
  • 3
0
votes
1 answer

Stuck trying to use a customRestService and a serviceBean for a dojo Tree in XPages

I'm trying to create a dojo Tree, for the time being with test data. The bean always returns the same. When I put the data in a file inside the nsf Resources, it works. Using the bean, it fails. It displays only the word Continent, and I cannot open…
D.Bugger
  • 2,300
  • 15
  • 19
0
votes
1 answer

Moving nodes within a Dijit Tree

I am using a tree as an input tool to allow the user to organize categories. I would like the users to be able to move the nodes around at the top level, specifically reordering them under the same parent. Everything looks fine until it is time for…
user2182349
  • 9,569
  • 3
  • 29
  • 41
0
votes
3 answers

Dojo dijit tree with checkbox is not keyboard accessible

I have created a dijit.Tree object where every node is a checkbox. When you select/deselect the parent node, the child nodes get selected/deselected; when one of the children is deselected, the parent gets deselected; when all the children are…
pdabade
  • 13
  • 3
0
votes
1 answer

Dojo 1.10 - refresh Tree view while keeping expanded nodes states

I have a Dojo tree in which I change icons depending on item values with the getIconClass method: _tree = new Tree({ model: _model, getIconClass: function(item) { if (item.completed) { return "iconCompleted"; }…
jck
  • 541
  • 6
  • 21
0
votes
1 answer

dojo/dijit tree checkbox select child when parent clicked

I found the working example online and I can see check box adjacent to each node of the tree The fiddle link mentioned last section given below: Dojo tree with checkbox not displaying Now my requirement is when the parent node is checked, all the…
Senthil
  • 83
  • 2
  • 11
0
votes
2 answers

dojo declare constructor: object member reference undefined

I have no idea why I get into troubles, referencing the class member object this.treeStore in the checkAcceptance method of the following piece of code? Code Snippet (link to a running jsfiddle…
Georg Kastenhofer
  • 1,387
  • 12
  • 32
0
votes
1 answer

dijit.Tree Folders appear with a icon PLUS even if no children are present

I am using the following code to render a dijit.Tree, as you can see from the picture I have these issues: The folder are marked with the "plus icon", but not children are present for any node. If I click on a folder the "plus icon" disappear…
GibboK
  • 71,848
  • 143
  • 435
  • 658
0
votes
2 answers

dijit/Tree is not updated when connected to a dojo/store/JsonRest

I have modified the dojo tutorial at http://dojotoolkit.org/documentation/tutorials/1.10/store_driven_tree/demo/demo.html to read from a JsonRest store. The problem is that the tree display doesn't update when I click "Add new child to selected…
Dominic
  • 1
  • 1
0
votes
1 answer

Using POST requests to retrieve tree data in dojo

I'm using dojo 1.4. I'm having a tree component linked to a dijit.tree.ForestStoreModel (actually a subclass of it). What is the simplest way to make the store use POST requests instead of GETs?
Maurice Perry
  • 32,610
  • 9
  • 70
  • 97