MultiHier checkbox and Dynamic children problem

It seems that ISuperObject.B['select'] does not reflect the checkbox state of the corresponding TIWCGJQDynaTreeNode.Select.
I'm using a DynaTree with static root nodes and dynamic children. And JQDynaTreeOptions.SelectMode := jqdtsMultiHier. If you check a node with his children previously loaded (the parent node was expanded previously), the node and all its children are marked. But, when the parent node has not been expanded (the children have not been charged yet), if you check the parent node and then expand it, their children are not checked.
To solve this, in the OnGetChildrenNodes event I'm using this
But, ANodeData.B['select'] is false although the node is checked, it was checked by the user clicking in the checkbox.
If I use the same code but check the parent node when it is loaded statically (TreeNode.Select := True), ANodeData.B['select'] is True in the OnGetChildrenNodes event. But, ANodeData.B['select'] is true although the node is unchecked by the user in the web page.
TIA,
Ricardo
I'm using a DynaTree with static root nodes and dynamic children. And JQDynaTreeOptions.SelectMode := jqdtsMultiHier. If you check a node with his children previously loaded (the parent node was expanded previously), the node and all its children are marked. But, when the parent node has not been expanded (the children have not been charged yet), if you check the parent node and then expand it, their children are not checked.
To solve this, in the OnGetChildrenNodes event I'm using this
- Code: Select all
JQDynaTreeGetChildrenNodes(Sendre: TObject; ANodeData: ISuperObject; var AJSon: ISuperObject);
...
if (JQDynaTree1,JQDynaTreeOptions.SelectMode = jqdtsmMultiHier) and (ANodeData.B['select']) then
JSonObj.B['select'] := True;
...
But, ANodeData.B['select'] is false although the node is checked, it was checked by the user clicking in the checkbox.
If I use the same code but check the parent node when it is loaded statically (TreeNode.Select := True), ANodeData.B['select'] is True in the OnGetChildrenNodes event. But, ANodeData.B['select'] is true although the node is unchecked by the user in the web page.
TIA,
Ricardo