Issue 208: Change node's icon at run time
Status:  Verified
Owner: ----
Closed:  Aug 2011
Reported by gaeasys....@gmail.com, Jun 14, 2011
1.I want to change node's icon at run time. I use 2 events (onQueryExpand and onExpand) but it is not work properly.

2. when I click to expand my node, I want to show an icon so i used onQueryExpand to change current icon (node.data.icon = "loading.gif").
After it was expanded (completed),I used onExpand to change to another icon.

- I use dynatree-1.1.1
- I use chrome 12 and Firefox 4

I try to see your example, but it does not have.
Please help me to fix it.

Jul 5, 2011
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release1.2
Jul 5, 2011
#2 gaeasys....@gmail.com
I do not see 1.2. where is it?
Jul 5, 2011
Project Member #3 moo...@wwwendt.de
I think you can solve your problem by adding a custom class to the node and an additional CSS rule.
1.2 is not yet released, but I will have a look, if the API can be improved to solve your problem more easily.

Status: Accepted
Aug 15, 2011
Project Member #4 moo...@wwwendt.de
 Issue 206  has been merged into this issue.
Aug 15, 2011
Project Member #5 moo...@wwwendt.de
here is a sample how to set a custom class at runtime:
  http://jsfiddle.net/mar10/eTmVU/
Status: Waiting
Aug 16, 2011
Project Member #6 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Done
Jun 15, 2012
#7 TheRealP...@gmail.com
I have the same problem.  I have a tree with 10,000 nodes, all under a first node called "All".  It takes about 5-6 seconds to render the tree.  There is no way to show a loading icon during the render.
Jul 17, 2012
Project Member #8 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #9 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified