When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.
Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
* TreeNodeTest.cs: added test for a situation when a
node already contains children when the PopulateOnDemand property
is set.
2009-11-16 Marek Habersack <[email protected]>
* TreeNodeCollection.cs: whenever a node is added, let the owner
know about it.
* TreeNode.cs: added internal property HadChildrenBeforePopulating
which is used to let TreeView know about an error condition where
a populate-on-demand node contains children added outside the
OnTreeNodePopulate event
* TreeView.cs: if a node has any child nodes and PopulatOnDemand
is set, throw an exception from RenderNode. This is the behavior
of .NET
svn path=/trunk/mcs/; revision=146275
* TreeNode.cs: fixed:
when 'Value' property is not set, value of 'Text' property is used
instead and vice versa.
* TreeNodeTest.cs:
* TreeViewTest.cs:
new tests were added.
svn path=/trunk/mcs/; revision=76782