ASPxComboBox - 如何安装所选项目?
我用 :
http://documentation.devexpres ... topic
问题是,
如何安装 selectedValue 从后面的代码
? 如果是的话 html 这样的:
http://documentation.devexpres ... topic
问题是,
如何安装 selectedValue 从后面的代码
? 如果是的话 html 这样的:
<dxe:aspxcombobox id="cbxJobType" maxlength="50" runat="server" width="200px">
<items>
<dxe:listedititem text="Contract" value="0"></dxe:listedititem>
<dxe:listedititem text="Full Time" value="1"></dxe:listedititem>
<dxe:listedititem text="Part Time" value="2"></dxe:listedititem>
</items>
<validationsettings errordisplaymode="ImageWithTooltip">
<requiredfield errortext="Required Value" isrequired="True"></requiredfield>
</validationsettings>
</dxe:aspxcombobox>
没有找到相关结果
已邀请:
4 个回复
诸葛浮云
赞同来自:
给物业 ClientInstanceName 在 comboBoxto 访问客户端和属性 ID 作为 cbxJobType 从控件访问服务器。
在服务器端代码上
这段代码还能正常:
石油百科
赞同来自:
安装
财产 ASPxComboBox.SelectedIndex;
通过使用其值选择所需的项目
特性 ASPxComboBox.Value:
对于代码 :
奔跑吧少年
赞同来自:
cbxJobType.SelectedItem = cbxJobType.Items.FindByValue/"Value #2"/;
哪个:
去
https://documentation.devexpre ... topic
, 了解更多信息 ASPxComboBox 在客户端 /ASPxClientComboBox/.
去
https://documentation.devexpre ... topic
, 了解更多信息 ASPxComboBox 在服务器端。
在那里,您可以查看所有成员,设计师,事件和方法。
诸葛浮云
赞同来自:
我希望,虽然它迟到了,但它可以帮助别人