[CLOSED] Drop down Field | Check Box Group

  1. #1

    [CLOSED] Drop down Field | Check Box Group

    Hi,
    I ahve a drop down field with CHeckbox group. I have set Lazymode="instance" to checkboxes as well as checkbox group.Despite that I am not able to select any checkbox without 1st expanding the drop down field.YOu can try the following code:


    <script type="text/javascript" language="javascript">
    var triggerClicked = function (a, b, index) {
               if (index == 0) {
                   chkGroup.eachItem(function (i) { i.setValue(true); });
               }
    
    
               else {
                   chkGroup.eachItem(function (i) { i.setValue(false); });
               }
           }
    
    </script>
    
    
    <ext:DropDownField runat="server" LazyMode="Instance">
        <Triggers>
        <ext:FieldTrigger Icon="SimpleRight" Qtip="Select All" />
        <ext:FieldTrigger Icon="SimpleMinus" Qtip="Deselect All" />
        </Triggers>
        <Listeners>
        <TriggerClick Fn="triggerClicked" />
        </Listeners>
        <Component>
        <ext:Panel runat="server" id="pnl1" Width="200" ForceLayout="true" AutoHeight="true" MaxHeight="300" Padding="2">
        <Items>
        <ext:CheckboxGroup ID="chkGroup" LazyMode="Instance"  ColumnsNumber="1" runat="server">
        <Items>
        <ext:Checkbox runat="server" BoxLabel="Check1" LazyMode="Instance"></ext:Checkbox>
        <ext:Checkbox ID="Checkbox1" runat="server" LazyMode="Instance" BoxLabel="Check2"></ext:Checkbox>
        </Items>
        </ext:CheckboxGroup>
        </Items>
        </ext:Panel>
        </Component>
        </ext:DropDownField>



  2. #2

    RE: [CLOSED] Drop down Field | Check Box Group

    Hi,

    In your scenartio the LazyMode property is not required (lazy mode manages instantion for particular control only). You need full initialization for the group. Therefore set LazyInit="false" for the DropDownField (it forces dropdown component initialization as soon as possible)
  3. #3

    RE: [CLOSED] Drop down Field | Check Box Group

    Thanks!
  4. #4

    passing two or more variables to stored procedure by selecting check boxes in dropdown field

    Hi....,
    I'm working on the creation of website using ext.net. In that webpage, I have a dropdown field which consists of a list of names and includes checkboxes for each name t. Any name can be selected by clicking on the checkbox..
    I need to get details of the selected names from a data table using a stored procedure which takes names as reference like as follows....

    procedure passid(@name1 varchar(30),@name2 varchar(30))
    The data table contains columns id, name, age.

    If there is any solution for my question, plz inform me...
    Thank you in advance....
    Last edited by Daniil; Feb 21, 2011 at 7:34 AM. Reason: Please use [CODE] tags

Similar Threads

  1. [CLOSED] Adding Checkboxes to Check Group in DirectEvent
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 17, 2011, 4:50 PM
  2. Hidden check box group inside Accordion
    By Egale in forum 1.x Help
    Replies: 0
    Last Post: May 07, 2011, 8:41 AM
  3. Hidden check box group inside Accordion
    By Egale in forum 1.x Help
    Replies: 2
    Last Post: May 06, 2011, 7:46 PM
  4. Problem with Auto genertaed Check box Group
    By Egale in forum 1.x Help
    Replies: 3
    Last Post: May 04, 2011, 7:57 PM
  5. [CLOSED] Radio/Check Group labels broken in IE8
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 11, 2009, 8:15 AM

Posting Permissions