Issue 121: Add seperate checkbox image for unselectable nodes
Status:  WontFix
Owner: ----
Closed:  May 2014
Reported by richard....@gmail.com, Oct 7, 2009
What new or enhanced feature are you proposing?
It would be nice if checkbox nodes that are created as unselectable have an
own image.

What goal would this enhancement help you achieve?
The user would know upfront if a checkbox node is selectable. Now he just
recognize this if he clicks on the checkbox and nothing happens.

Oct 7, 2009
Project Member #1 moo...@wwwendt.de
We need 'grayed' image variants for checkbox and radiobutton (both checked and empty).
Also some changes to ui.dynatree.css

May be you want to volunteer and send the images and patch for the CSS file ;-)

Status: Accepted
Labels: Milestone-Discussion
Oct 8, 2009
#2 richard....@gmail.com
Voluntariness accepted. :)

I included the images and css and also a patched version of the js-file.
What I did:
 - added a css-class name to the list of classNames (line 1946)
 - made the node selectable by default (line 1119)
 - added the new css class (line 263)

I left out the persistence things as I am not familiar with this feature. 
Please have a look at the code and give me feedback. I tested the code in my project
and its working well for me. 
#121_patch.zip
20.5 KB   Download
Oct 8, 2009
Project Member #3 moo...@wwwendt.de
Had a 2nd thought...
There propably will be another node option 'disabled' in the future ( issue #68 ).
Not sure, if we should use your icons in this case (instead or additionally):
an unselectable node can never be selected. But a disabled node may be.

Also, the multi-class CSS style may not work with IE6 - haven't tested though.

Anyway, Thanks for your work! I'm sure it will become part of one of the next releases.
Owner: moo...@wwWendt.de
Jan 23, 2011
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Owner: ---
Aug 12, 2011
#5 mwcl...@gmail.com
I've implemented a knock-off of this in the latest code.  Is this going to be resurrected?  While the original poster wanted a different icon (which was a good idea) I'm wanting to just "grey-out" the text.  It might also be nice to change the hover but not critical.
Dec 23, 2012
#6 yadavman...@gmail.com
Any updates on this change?
May 1, 2014
Project Member #7 moo...@wwwendt.de
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree
Status: WontFix