Opened 8 years ago

Closed 8 years ago

#13473 closed defect (invalid)

dijit.Tree connnected to JsonRestStore ignores "children":false for leaf node determination.

Reported by: bedge Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

Leaf nodes in a tree where "children":false is set still show a "+" by the tree node. My reading of the docs is that this is how one denotes a node with no children, ie setting "children":false as is done in the json below:

{"$ref":"grumb/1548/","name":"May 23, 2011","id":"grumb/1548/","children":[{"$ref":"target/37","name":" foo","id":"target/37","children":false}]}

Should the above json not generate a tree leaf node?

If not, then how does one tell the tree widget which nodes have children?

I am using programmatic mode to create the tree, if that matters.

Change History (1)

comment:1 Changed 8 years ago by bill

Resolution: invalid
Status: newclosed

That's not right because you have two attributes both named "children". I think it will work if your node just doesn't have a children attribute at all. You can trace the calls to TreeStoreModel.mayHaveChildren() to see what's going on.

Last edited 8 years ago by bill (previous) (diff)
Note: See TracTickets for help on using tickets.