hi,
i have a treeview inside an updatepanel. I'm using ajax ext beta 1
the treeview make use of the node expand with PopulateOnDemand = True
when i select a leaf node the treeeview is regenerated with one or more node that i have not added and than stop working.
I think this is a problem of the treeview with updatepanel because if I remove the updatepanel the treeview work fine.
can anyone help me to solve the problem?
thanks
this is the source code...
Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Me.LoadIf Not Page.IsPostBackThen trv1.Nodes.Clear() trv1.Nodes.Add(New XTreeNode("Root node","A")) trv1.Nodes(0).ChildNodes.Add(New XTreeNode("trv1_node 1","1.1")) trv1.Nodes(0).ChildNodes.Add(New XTreeNode("trv1_node 2","1.2"))'trv1.Nodes(0).ChildNodes(0).Select() trv1.Nodes(0).ChildNodes(0).PopulateOnDemand =True trv1.Nodes(0).ChildNodes(0).SelectAction = TreeNodeSelectAction.Expand trv1.ExpandDepth = 1End If End Sub Protected Sub trv1_TreeNodePopulate(ByVal senderAs Object,ByVal eAs System.Web.UI.WebControls.TreeNodeEventArgs)Handles trv1.TreeNodePopulateDim pNodeAs TreeNode = e.NodeDim pNewNodeAs TreeNode =New TreeNode("New Node","NN") pNewNode.PopulateOnDemand =True pNewNode.SelectAction = TreeNodeSelectAction.Expand pNode.ChildNodes.Add(pNewNode)End Sub
i've tried also the beta 2 but the problem remains the same!!
can anyone help me to solve the problem?
I heard it isn't supported with the Betas or RC, but I heard it may be eventually... I did work before the Betas though.
No comments:
Post a Comment