Hello,
i want to display a tree in a TreeGrid that is usind a RestDataSource returning XML Data.
It is working fine, but the problem is, that every node can be expanded regardless if it is a childrennode or not. If I click on a node that has no children, the root item become closed.
TreeNode has a method
http://www.smartclient.com/smartgwt/...Folder(boolean)
or Tree has
http://www.smartclient.com/smartgwt/....tree.TreeNode)
I can not use this method, because of the RestDataSource.
Can I set properties in the XMLanswer to determine whether this node has children or not which means is it expandable or not.
For now I set only the fields that i have defined in the datasource.
BestRegards
Jakob
i want to display a tree in a TreeGrid that is usind a RestDataSource returning XML Data.
It is working fine, but the problem is, that every node can be expanded regardless if it is a childrennode or not. If I click on a node that has no children, the root item become closed.
TreeNode has a method
http://www.smartclient.com/smartgwt/...Folder(boolean)
or Tree has
http://www.smartclient.com/smartgwt/....tree.TreeNode)
I can not use this method, because of the RestDataSource.
Can I set properties in the XMLanswer to determine whether this node has children or not which means is it expandable or not.
For now I set only the fields that i have defined in the datasource.
BestRegards
Jakob
Comment