FineUI/FineUI.Examples/dropdownlist/dropdownlist_enableedit.aspx

45 lines
2.1 KiB
Plaintext
Raw Normal View History

2013-11-01 14:13:51 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dropdownlist_enableedit.aspx.cs"
Inherits="FineUI.Examples.dropdownlist.dropdownlist_enableedit" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<x:PageManager ID="PageManager1" runat="server" />
<x:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" Width="550px" EnableFrame="true" EnableCollapse="true"
ShowBorder="True" Title="简单表单" ShowHeader="True">
<Items>
<x:DropDownList runat="server" ID="DropDownList1" EnableEdit="true" ForceSelection="true">
<x:ListItem Text="选项 1" Value="Value1" Selected="true" />
<x:ListItem Text="选项 2不可选择" Value="Value2" EnableSelect="false" />
<x:ListItem Text="选项 3不可选择" Value="Value3" EnableSelect="false" />
<x:ListItem Text="选项 4" Value="Value4" />
<x:ListItem Text="选项 5" Value="Value5" />
<x:ListItem Text="选项 6" Value="Value6" />
<x:ListItem Text="选项 7" Value="Value7" />
<x:ListItem Text="选项 8" Value="Value8" />
<x:ListItem Text="选项 9" Value="Value9" />
<x:ListItem Text="普通型1 < L > 1.5" Value="普通型1 < L > 1.5" />
</x:DropDownList>
<x:Button ID="btnSelectItem6" Text="选中“选项 6”" runat="server" OnClick="btnSelectItem6_Click"
CssClass="inline">
</x:Button>
<x:Button ID="btnGetSelection" Text="获取此下拉列表的选中项" runat="server" OnClick="btnGetSelection_Click">
</x:Button>
<x:Label runat="server" ID="labResult">
</x:Label>
</Items>
</x:SimpleForm>
<br />
<br />
下拉列表的属性设置为EnableEdit="true" ForceSelection="true"。
</form>
</body>
</html>