Hi,
I still confuse on how to do this, maybe you all can take a look on the below code:
In ASPX page:
IsCheckbox="True" OnNodeEventJavascript="nodeEventHandler" Width="100%"
Padding="1px" FadeEffect="True" BorderColor="Silver" BorderWidth="0px" CanBeSelected="false"
ContentClickTogglesCheckbox="false" ContentClickExpands="false"
OnNodeDataBound="flyTreeView_NodeDataBound" OnPopulateNodes="flyTreeView_PopulateNodes">
No node is created in aspx page, and when user click a button on the page, it'll post back to generate the node as below:
In aspx.cs:
FlyTreeNode ftn = new FlyTreeNode();
ftn.Text = "ABC";
ftn.Value = "ABC";
ftn.NodeTypeID = "LoadProcess";
ftv.Add(ftn);
FlyTreeNode ftn1 = new FlyTreeNode();
ftn1.Text = "DEF";
ftn1.Value = "ABC";
ftn1.NodeTypeID = "LoadProcess";
ftv.Add(ftn1);
The above will loop a few times to create different node and each node is having a linkbutton where user can click to open other page. In other words, when user click on each node, different page can be opened. I need the node to generate during runtime because I can't program it at design time. If I run the above, I can get two nodes display but without any wording on it.
Btw, I'm not using DataBinding to generate the node. The above generation is happen under onclick event of a button.
Someone please help me on the above because I really stuck at this stage.
Thanks a lot.