首页 > 代码库 > Ext.net combobox 的disabled
Ext.net combobox 的disabled
C#:禁用combobox
this.ComboBox7.Disabled =true;
C#:隐藏
<ext:RadioGroup ID="RadioG_sfzg" runat="server" GroupName="RadioGroup" FieldLabel="是否第一<font color=red>*</font>" Cls="x-check-group-alt" Visible="false">使用的是Visible="false" 这个属性,后台没找到类似的设置 .
aspx:
<ext:RadioGroup ID="RadioG" runat="server" GroupName="RadioGroup" FieldLabel="是否第一<font color=red>*</font>" Cls="x-check-group-alt" > <Items> <ext:Radio ID="Radio1" runat="server" BoxLabel="是" InputValue=http://www.mamicode.com/"1"> <DirectEvents> <Check OnEvent="Radio1_check" /> </DirectEvents> </ext:Radio> <ext:Radio ID="Radio2" runat="server" BoxLabel="否" InputValue=http://www.mamicode.com/"0" Checked="true"> <DirectEvents> <Check OnEvent="Radio2_check" /> </DirectEvents> </ext:Radio> </Items> </ext:RadioGroup>
<ext:ComboBox ID="ComboBox7" runat="server" FieldLabel="第一名<font color=red>*</font>" EmptyText="请选择..." TypeAhead="true" ForceSelection="false" Mode="Local" StoreID="Store6" DisplayField="Name" ValueField="Id" MinChars="0" ListWidth="150" AnchorHorizontal="92%" />
C#:对应的 Radio1_check Radio2_check 函数
protected void Radio1_check(object sender, DirectEventArgs e){ if (this.Radio1.Checked) { this.ComboBox7.Disabled = false; } } protected void Radio2_check(object sender, DirectEventArgs e) { if (this.Radio2.Checked) { this.ComboBox7.Disabled = true; } }
Ext.net combobox 的disabled
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。