The PostBack property can NOT be set declaratively in the aspx page. This is a limitation of the .NET platform and therefore there is not much we can do to improve the treeview behavior on that score. Currently, we suggest setting the PostBack property in the XML Content file or in the codebehind, like:
| XML Content File |
Copy Code |
|
<Tree> <Node Text="North America" PostBack="True"/> <Node Text="Zambia" PostBack="False"> <Node Text="Lusaka" PostBack="True"/> </Node> <Node Text="Zimbabwe" PostBack="False"> <Node Text="Harare" PostBack="True"/> </Node> </Tree> |
| C# |
Copy Code |
|
//the code below sets the PostBack property of the first root node to true
RadTreeView1.Nodes[0].PostBack = true |