Ext.net combobox 的disabled

來源:互聯網
上載者:User

標籤:log   group   rect   force   items   ogr   event   void   obj   

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="1">                        <DirectEvents>                                      <Check OnEvent="Radio1_check" />                         </DirectEvents>               </ext:Radio>               <ext:Radio ID="Radio2" runat="server" BoxLabel="否" InputValue="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個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.