jquery jstree and dynatree parent node don’t get selected(asp.net mvc)

jquery jstree and dynatree parent node don’t get selected(asp.net mvc)

I have used jquery jstree and dynatree persistance example using check boxes  and found the same logic

The thing is that the if for example there is a parent and 4 child.

a) i select all the 4 child (parent get auto selected) the 4 child and the parent node id get posted to the controller.

b) But if i select less then 4 children (parent get auto selected) only child node ids get posted to the controller.

Is there any way even if i select less then 4 children all my selected nodes included the parent get posted to the controller?