FineUI/FineUI.Examples/tree/tree_singleexpand.aspx
三生石上 79ad9e6bc2 v4.2.3
2016-01-10 01:19:30 -05:00

53 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tree_singleexpand.aspx.cs" Inherits="FineUI.Examples.tree.tree_singleexpand" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Tree ID="Tree1" Width="550px" ShowHeader="true" Title="树控件EnableSingleExpand"
EnableCollapse="true" EnableSingleClickExpand="false" EnableSingleExpand="true"
runat="server">
<Nodes>
<f:TreeNode Text="中国" Expanded="true">
<f:TreeNode Text="河南省">
<f:TreeNode Text="驻马店市" NodeID="zhumadian">
<f:TreeNode Text="遂平县" Leaf="false" NodeID="suiping">
<f:TreeNode Text="槐树乡" Leaf="false" NodeID="huaishu">
<f:TreeNode Text="陈庄村" NodeID="chenzhuang">
</f:TreeNode>
</f:TreeNode>
<f:TreeNode Text="嵖岈山乡" NodeID="chayashanxiang">
</f:TreeNode>
</f:TreeNode>
<f:TreeNode Text="西平县" Leaf="false" NodeID="xiping">
<f:TreeNode Text="芦庙乡" NodeID="lumiaoxiang">
</f:TreeNode>
<f:TreeNode Text="杨庄乡" NodeID="yangzhuangxiang">
</f:TreeNode>
</f:TreeNode>
</f:TreeNode>
<f:TreeNode Text="漯河市" NodeID="luohe" />
</f:TreeNode>
<f:TreeNode Text="安徽省" Expanded="true" NodeID="anhui">
<f:TreeNode Text="合肥市" Expanded="true" NodeID="hefei">
<f:TreeNode Text="金色池塘小区" NodeID="golden">
</f:TreeNode>
<f:TreeNode Text="中国科学技术大学" NodeID="ustc">
</f:TreeNode>
</f:TreeNode>
</f:TreeNode>
</f:TreeNode>
</Nodes>
</f:Tree>
</form>
<br />
注:启用了 EnableSingleExpand也就是说同一级节点同时只能展开一个初始状态除外
</body>
</html>