FineUI 官方论坛
标题:
动态创建的树,给树节点绑定nodecommand事件无效
[打印本页]
作者:
foreverjjj
时间:
2012-12-5 02:01
标题:
动态创建的树,给树节点绑定nodecommand事件无效
如题,做了个实验,发现无效,是不是我代码哪里不对
Tree tree = new Tree();
tree.NodeCommand += new EventHandler<TreeCommandEventArgs>(Tree1_NodeCommand);
FineUI.TreeNode tn = new FineUI.TreeNode();
tn.EnablePostBack = true;
tn.Text = "123";
tree.Nodes.Add(tn);
tree.NodeCommand += new EventHandler<TreeCommandEventArgs>(Tree1_NodeCommand);
ContentPanel1.Controls.Add(tree);
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4