I have a node relation with data of MySQL, inside this data have Visible field. When i take visible by default the node of dynatree is view in black, when uncheck visible view in gray.
I use this to set to gray:
$('#tree').dynatree('getTree').getNodeByKey('ID1').data.Addclass('nodegray');
How delete this nodegray class for a previous set to nodegray?
nodegray is defined like: span.nodegraya { color:#666666;}