[CLOSED] checkbox check client side

  1. #1

    [CLOSED] checkbox check client side

    hi,

    i have checked the checkbox and radio buttons in clientside using below code.. The code runs without any error, but checkbox and radion buttons is not checked.. plz check my code


    by ram


    html:
    
    
    
    <ext:CheckboxGroup 
    
    
    ID="CheckboxGroup3" 
    
    
    runat="server" 
    
    
    FieldLabel="Multi-Column" 
    
    
    ColumnsNumber="3">
    
    
    <Items>
    
    
    <ext:Checkbox ID="Checkbox12" runat="server" BoxLabel="Item 1" />
    
    
    <ext:Checkbox ID="Checkbox13" runat="server" BoxLabel="Item 2" />
    
    
    <ext:Checkbox ID="Checkbox14" runat="server" BoxLabel="Item 3" />
    
    
    <ext:Checkbox ID="Checkbox15" runat="server" BoxLabel="Item 4" />
    
    
    <ext:Checkbox ID="Checkbox16" runat="server" BoxLabel="Item 5" />
    
    
    </Items>
    
    
    </ext:CheckboxGroup> 
    
    
    <ext:RadioGroup ID="RadioGroup1" runat="server" FieldLabel="Auto Layout">
    
    
    <Items>
    
    
    <ext:Radio ID="Radio4" runat="server" BoxLabel="Item 1" />
    
    
    <ext:Radio ID="Radio5" runat="server" BoxLabel="Item 2" />
    
    
    <ext:Radio ID="Radio6" runat="server" BoxLabel="Item 3" />
    
    
    <ext:Radio ID="Radio7" runat="server" BoxLabel="Item 4" />
    
    
    <ext:Radio ID="Radio8" runat="server" BoxLabel="Item 5" />
    
    
    </Items>
    
    
    </ext:RadioGroup> 
    
    js:
    
    
    
    
    <script type="text/javascript"> 
    function Check()
    
    
    {
    
    
    CheckboxGroup3.items.items[1].checked=true;
    
    
    CheckboxGroup3.items.items[2].checked=true;
    
    
    }
    
    
    function Radio()
    
    
    {
    
    
    RadioGroup1.items.items[1].checked=true;
    
    
    
    
    
    }
    
    
    </script>
  2. #2

    RE: [CLOSED] checkbox check client side

    You should call the .setValue() function of the Checkbox. Just pass true or false to check or uncheck.

    http://www.extjs.com/deploy/dev/docs...ember=setValue


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] How to handle the Checkbox Check client event?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 08, 2012, 12:18 PM
  2. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  3. [CLOSED] How To Check or UnCheck Checkbox of treepanel from server side
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 27, 2011, 1:01 PM
  4. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM
  5. Replies: 1
    Last Post: Aug 13, 2009, 9:37 AM

Posting Permissions