| Issue 423: | Get DOM node by ID from dynaTree Node | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hi, I am using dynaTree 1.2.4 with jQuery 1.9. I need to get the the equivalent DOM/jQueryNode based on DOM Element's ID. I can see that dynaTree doesnt add any DOM id to the dynaTreeNode. Essentially, I want to do reverse of what this dynaTree API achieves : $.ui.dynatree.getNode(<domElement identified by id>) Is it possible to do so ? Thanks Binita
Apr 23, 2013
Project Member
#1
moo...@wwwendt.de
Status:
Waiting
Apr 23, 2013
What I mean is that , the HTML associated to each dynaTreeNode should have a 'id' associated. Currently, its putting all the attributes into the HTML "data" attribute. But, to uniquely identify a node in DOM/jQuery, a "id" attribute is required.
I should be able to do something like :
in plain DOM :
document.getElementById(<dynaTreeNode's Id>)
or its jQuery equivalent :
$("<dynaTreeNode's Id>")
Not sure about the 'generateIds' option though.
Thanks
Apr 23, 2013
I think setting `generateIds: true` should solve it
Status:
Done
Apr 24, 2013
Adding generateIds property to the treeNode didnt work :(.
Apr 24, 2013
it's an option you can set when initializing the tree, you can search the docs for it...
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|