1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    16
    Vote Rating
    0
    oliverseitz is on a distinguished road

      0  

    Default check / uncheck all checkboxes in checkboxgroup

    check / uncheck all checkboxes in checkboxgroup


    Hi there!

    I have a problem... (well, I post here in help... ) :

    I have a form with a checkboxgroup (as in checkbox/radiobutton example) but I want an additional checkbox that checks/unchecks all checkboxes of a checkboxgroup.

    additional problem: in my checkboxgroup my checkboxes are dynamically loaded from database, this means no fix count of boxes, depending on elements in database.

    any idea how to set/unset this dynamic checkboxes?
    well, I figured out that I need something like a loop to set checked on true/false, but dont know how to get the count of elements in group to do this...

    thanx in advance for help...

    bye,
    oliver

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Posts
    58
    Vote Rating
    0
    Ballsacian1 is on a distinguished road

      0  

    Default


    Each.each seems to return all the checkboxes properly. From there just check to see if data.data[item.name] exists if it does then set the value.

    Code:
    Ext.each(checkgroup.items.items, function(item) {
         console.log(item);
    }, this);

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    16
    Vote Rating
    0
    oliverseitz is on a distinguished road

      0  

    Default


    any dummy example how this works?

    I added a listener to my additional checkboxgroup (with check all checkbox) to check/uncheck all checkboxes in checkboxgroup with fieldname "testgroup".

    but how to access this checkboxgroup.

    thanx in advance.

    bye,
    oliver

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar