I have a root node with PopulateOnDemand set to true.
My OnTreeNodePopulate adds a child node with PopulateOnDemand set to false.
When I click the child node the OnTreeNodePopulate method is still called, just before the SelectedNodeChanged method.
Does anyone know why this method is being called?
Code:
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
TreeView1.Nodes.Add(
new TreeNode
{
Text = "Expand Action Node",
Expanded = false,
SelectAction = TreeNodeSelectAction.Expand,
PopulateOnDemand = true
});
}
}
protected void SelectNode(object sender, EventA ...
Go to the complete details ...