Results 1 to 4 of 4

Thread: Add checkbox to checkboxgroup at runtime

  1. #1

    Default Add checkbox to checkboxgroup at runtime

    Is this possible?

  2. #2

    Default

    Quote Originally Posted by enickma View Post
    Is this possible?
    yes. i used ext3.0. this post is so old.

    PHP Code:
     checkGroup = new Ext.form.CheckboxGroup({items:[],itemCls'x-check-group-alt'});
          for(var 
    0;j<array[i].option.length;j++)
            {
                
    checkGroup.items[j]= {boxLabel: array[i].option[j][0], name: array[i].idinputValue: array[i].option[j][1]}
            } 
    hope not too late

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    I think the OP meant at runtime and not before the CheckboxGroup was rendered.

    ps. I once wrote code for this, but I'm to lazy to find it now (and I don't think the OP is interested anymore).

  4. #4

    Default

    yes, u r right

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •