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
1
vote
1 answer

dojo: loading json data from local file (using http) into dijit tree

file snapshot_report_js.js: require([ "dojo/dom", "dojo/json", "dojo/store/Memory", "dijit/tree/ObjectStoreModel", "dijit/Tree", "dojo/text!http://localhost:8080/dojo/json_data/snapshot.json", "dojo/domReady!", …
user1767599
  • 47
  • 1
  • 6
1
vote
0 answers

XPages: dijit.Tree dojo.xhrPost and Partial Refresh?

I have a dijit.Tree which works fine. Users can add, delete and rename nodes on this tree (jsfiddle) if they have special authorization on it. The next step is to post this changes back to the server, which works perfect, using dojo.xhrPost in…
Georg Kastenhofer
  • 1,387
  • 12
  • 32
1
vote
1 answer

Dojo dijit tree hide expand icon

I've got a dijit Tree which is populated via a store wrapped in Observable, essentially the example here: http://dojotoolkit.org/reference-guide/1.10/dijit/Tree.html#id7 (Not that the example actually runs from the dojo site though: unless that's…
Kate
  • 1,556
  • 1
  • 16
  • 33
1
vote
1 answer

dijit.Tree not collapsing when reloaded

I have implemented a dijit tree with checkboxes as per the implementation provided on http://jsfiddle.net/5QcFY/14/ and that is working perfectly fine. I am displaying the tree on dialogue box. There are "categories" as parent nodes and "types" as…
A N
  • 394
  • 2
  • 8
  • 18
1
vote
1 answer

How to enable openOnClick for a Dojo/Dijit Tree and still call onClick function

I want to be able to both select the folder node label to expand the tree while also calling the onClick function for the tree. I've set the openOnClick property of the tree equal to true which will enable the tree to expand when the node label is…
Thomas Kagan
  • 440
  • 3
  • 16
1
vote
2 answers

How to place checkboxes in a tree?

Can someone suggest how can I place check boxes against each folder of the below tree hierarchy? I am trying to add check-boxes but it is not showing up in my tree shown below. Please suggest the changes i need to make for my below code to get the…
Dojo_user
  • 281
  • 4
  • 9
  • 28
1
vote
1 answer

Issues in new folder structure in a dojo tree

How can I make the store observable for the ItemFileWriteStore function below?Am I using the correct syntax below? It isn't working in my code, please suggest. store = new dojo.store.Observable(dojo.data.ItemFileWriteStore{ target:'store' url: "my…
Dojo_user
  • 281
  • 4
  • 9
  • 28
1
vote
1 answer

I want Dojo Tree Context Menu NOT fired for some nodes?

I have a Dojo Tree and a related Dojo Menu. I want this context menu popup for certain types of nodes and not for the others. The Tree is not static and items are added at runtime. Is there an Event (onBefore) of Menu that is fired before popping up…
Malkocoglu
  • 2,522
  • 2
  • 26
  • 32
1
vote
1 answer

Add item to top of the dojo tree

Hi folks I'm using dojo tree with ForestStoreModel and ItemFileWriteStore. I'm seeking some out of the box way of adding tree items to the top of the Tree root. The default behaviour is to add items to the bottom of the tree. This is how I add…
Charith De Silva
  • 3,650
  • 4
  • 43
  • 47
1
vote
1 answer

create dijit.Tree with JsonStore and the C# mvc controller that provides the data

How can I add a tree of entities at client that are fetched from server through JSON ? I have a basic asp.net mvc3 site written in C# at VS2012. For now I'm running the site in IIS 7 Express on windows 7 on my local machine. I have found a…
Searcher
  • 191
  • 2
  • 5
1
vote
1 answer

Update Gridx with JsonStore, on event?

I am new to Web UI, Dojo, Java etc. If you are referring any advance topic please give some reading reference. It will help. Context: I have Gridx design using JsonStore, which takes a target + id for URL. With fixed "id" Grid loads well. I have…
1
vote
3 answers

How to Get a dijit/Tree Node by Id?

I have a dijit/Tree that works fine. However, I cannot figure out how to get the DOM node for a specific row from the id (the id in the store, not the DOM id). Something like: myTreeModel.getDomNodeById( id ); I am using dijit/Tree,…
voidstate
  • 7,937
  • 4
  • 40
  • 52
1
vote
1 answer

how to make dijit tree folders selectable?

I have a tree in which i want the onOpen and onClose to be called only when the user clicks on the +/- icon and not if he clicks anywhere on the line that contains the folder. then I want the onClick event fired whenever the user clicks on the line…
MozenRath
  • 9,652
  • 13
  • 61
  • 104
1
vote
1 answer

Updating the rootLabel of a dijit.Tree

I'm trying to update the model.rootLabel of a dijit.Tree using javascript. I set the model like this :
noru
  • 547
  • 2
  • 6
  • 21
1
vote
0 answers

Build a sorted dojo digit tree from XmlStore

Is it possible to create a sorted tree in DOJO using digit tree from XmlStore? The data in the XML is not always guaranteed to be sorted. If it is possible, please help me with some pointers.
Shree
  • 4,627
  • 6
  • 37
  • 49