private Tree InitTreeMenu(List<Menu> menus)
{
Tree treeMenu = new Tree();
treeMenu.ID = "treeMenu";
treeMenu.EnableArrows = true;
treeMenu.ShowBorder = false;
treeMenu.ShowHeader = false;
treeMenu.EnableIcons = false;
treeMenu.AutoScroll = true;
regionLeft.Items.Add(treeMenu);
// 生成树
ResolveMenuTree(menus, null, treeMenu.Nodes);
// 展开第一个树节点
treeMenu.Nodes[0].Expanded = true;
treeMenu.EnableSingleClickExpand = true; //mxh 2014-11-25
return treeMenu;
}
http://www.fineui.com/bbs/forum.php?mod=viewthread&tid=6094&highlight=SingleClickExpand
时间: 2024-10-29 13:07:35