ASPxDropDownEdit的几种用法
<dx:ASPxDropDownEdit ClientInstanceName="xDropDownEditAppCountry" ID="xDropDownEditAppCountry"
SkinID="CheckComboBox" Width="180px" runat="server" EnableAnimation="False">
<DropDownWindowTemplate>
<dx:ASPxListBox Width="100%" ID="listBoxAppCountry" ClientInstanceName="checkListBoxAppCountry"
SelectionMode="CheckColumn" runat="server" SkinID="CheckComboBoxListBox">
<ClientSideEvents SelectedIndexChanged="OnListBoxAppCountrySelectionChanged" />
</dx:ASPxListBox>
</DropDownWindowTemplate>
<ClientSideEvents TextChanged="SynchronizeListBoxAppCountryValues" DropDown="SynchronizeListBoxAppCountryValues" />
</dx:ASPxDropDownEdit>
<dx:ASPxDropDownEdit ClientInstanceName="xDropDownEditFileLevel" ID="xDropDownEditFileLevel"
SkinID="CheckComboBox" Width="180px" runat="server" EnableAnimation="False">
<DropDownWindowTemplate>
<dx:ASPxListBox Width="100%" ID="listBoxFileLevel" ClientInstanceName="checkListBoxFileLevel"
SelectionMode="CheckColumn" runat="server" SkinID="CheckComboBoxListBox">
<ClientSideEvents SelectedIndexChanged="OnListBoxFileLevelSelectionChanged" />
<Items>
<dx:ListEditItem Text="全选" Value="9" />
<dx:ListEditItem Text="核心" Value="核心" />
<dx:ListEditItem Text="重要" Value="重要" />
<dx:ListEditItem Text="普通" Value="普通" />
<dx:ListEditItem Text="不重要" Value="不重要" />
</Items>
</dx:ASPxListBox>
</DropDownWindowTemplate>
<ClientSideEvents TextChanged="SynchronizeListBoxFileLevelValues" DropDown="SynchronizeListBoxFileLevelValues" />
</dx:ASPxDropDownEdit>
<dx:ASPxDropDownEdit ClientInstanceName="xDropDownEditAppCountry" ID="xDropDownEditAppCountry"
SkinID="CheckComboBox" Width="180px" runat="server" EnableAnimation="False">
<DropDownWindowTemplate>
<dx:ASPxListBox Width="100%" ID="listBoxAppCountry" ClientInstanceName="checkListBoxAppCountry"
SelectionMode="CheckColumn" runat="server" SkinID="CheckComboBoxListBox">
<ClientSideEvents SelectedIndexChanged="OnListBoxAppCountrySelectionChanged" />
</dx:ASPxListBox>
</DropDownWindowTemplate>
<ClientSideEvents TextChanged="SynchronizeListBoxAppCountryValues" DropDown="SynchronizeListBoxAppCountryValues" />
</dx:ASPxDropDownEdit>
<dx:ASPxDropDownEdit ID="DropDownEdit" runat="server" ClientInstanceName="DropDownEdit"
Width="170px" AllowUserInput="False" EnableAnimation="False">
<DropDownWindowStyle>
<Border BorderWidth="0px" />
</DropDownWindowStyle>
<DropDownWindowTemplate>
<dx:ASPxTreeList ID="TreeList" runat="server" AutoGenerateColumns="False" ClientInstanceName="TreeList"
OnCustomJSProperties="TreeList_CustomJSProperties" OnDataBound="TreeList_DataBound"
KeyFieldName="n_KeyID" OnInit="TreeList_OnInit" ParentFieldName="n_ParentKeyID">
<Border BorderStyle="Solid" />
<SettingsEditing ConfirmDelete="true" />
<SettingsPager Mode="ShowAllNodes" />
<SettingsSelection Enabled="true" Recursive="true" />
<Columns>
<dx:TreeListTextColumn FieldName="n_KeyID" Width="50px" Caption="" Visible="False"
VisibleIndex="0">
</dx:TreeListTextColumn>
<dx:TreeListTextColumn FieldName="s_CName" Caption="机构名称" Width="150px" VisibleIndex="1">
</dx:TreeListTextColumn>
<dx:TreeListTextColumn FieldName="n_ParentKeyID" Width="50px" Visible="False" VisibleIndex="2">
</dx:TreeListTextColumn>
</Columns>
<ClientSideEvents Init="TreeListInitHandler" EndCallback="TreeListEndCallbackHandler"
NodeClick="TreeListNodeClickHandler" SelectionChanged="setSelectValue" FocusedNodeChanged="setSelectValue" />
</dx:ASPxTreeList>
</DropDownWindowTemplate>
</dx:ASPxDropDownEdit>
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步