TreeGrid row selection


I’m using dhtmlxTreeGrid 3.6.
If parent row is selected, then could not allow to select their child.
Suppose first I select some child row, then I try to select their parent, what i need is un-select all of their child rows and select their parent row ?
Is it possible ? Any alternate solutions ?

Thank you !

By using the following to capture the parent ID

grid.attachEvent("onDrag",function(sid,tid){ ... }

But the described behavior is a default behavior of dhtmlxtreeGrid: … _api2.html

Please, provide with exact steps to reproduce the issue.