I have a dynatree with multiple parent and child nodes.I am getting the json data and passing to the dynatree to form a tree structure.
$(document).ready(function() {
$("#tree").dynatree({
checkbox: true,
classNames: {checkbox: "dynatree-radio"},
hasChildren:true,
selectMode: 1,
onDblClick: function(node, event) {
node.toggleSelect();
},
onKeydown: function(node, event) {
if( event.which == 32 ) {
node.toggleSelect();
return false;
}
},
<%=codesJSON%>
});
});
The nodes can be selected using a radio button. i would like to select only the child node when the tree is fully loaded and the parent node is just for visibility.I have tried using the unselectable property but it doesn't seem to be working for my case.
Is there a way to achieve this.
Kindly help thanks...
Set up a jsfiddle for it - http://jsfiddle.net/jegadeesb/zRPfx/2/