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
    65
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi