How to add a new node to a dijit.Tree

Posted by Larry Bergman on Stack Overflow See other posts from Stack Overflow or by Larry Bergman
Published on 2010-05-03T15:36:33Z Indexed on 2010/05/11 4:34 UTC
Read the original article Hit count: 396

Filed under:
|
|

I want to add a new node to a dijit.ree as a sibling of the currently selected node. I've found sample code (I'm new to dojo) that adds a new item to the tree using the newItem method of ItemFileWriteStore, but the new item always appears at the bottom of the tree. How would I add to the store at a specified position, in particular the position corresponding to the current selection? Pointers to sample code would be welcome :)

Thanks, Larry

© Stack Overflow or respective owner

Related posts about dojo

Related posts about tree