Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User dorgan's Avatar
    Join Date
    Dec 2007
    Location
    Cocoa, FL
    Posts
    286
    Vote Rating
    -1
    dorgan is an unknown quantity at this point

      0  

    Default checkboxgroup setValue()

    checkboxgroup setValue()


    I have a checkboxgroup I am trying to use setValue() to have the proper checkboxes checked.

    Code:
    {
        xtype: 'checkboxgroup',
        id: 'products',
        name: 'products[]',
        fieldLabel: 'Social Sites',
        columns: 3,
        anchor: '93%',
        items: [
            {boxLabel: 'Facebook', id: 'Facebook', name: 'products[]', inputValue: 'Facebook'},
            {boxLabel: 'Twitter' , id: 'Twitter', name: 'products[]', inputValue: 'Twitter'},
            {boxLabel: 'Google Buzz', id: 'Google_Buzz',  name: 'products[]', inputValue: 'Google Buzz'},
            {boxLabel: 'Linked In', id: 'Linked_In',  name: 'products[]', inputValue: 'Linked In'},
            {boxLabel: 'Digg', id: 'Digg',  name: 'products[]', inputValue: 'Digg'},
            {boxLabel: 'StumbleUpon', id: 'StumbleUpon',  name: 'products[]', inputValue: 'StumbleUpon'},
            {boxLabel: 'Reddit', id: 'Reddit',  name: 'products[]', inputValue: 'Reddit'},
            {boxLabel: 'Delicious', id: 'Delicious',  name: 'products[]', inputValue: 'Delicious'},
            {boxLabel: 'Google', id: 'Google', name: 'products[]', inputValue: 'Google'}                     
        ] 
    }
    Here is what I am padding to setValue()
    Code:
    setValue(["Facebook","Linked In","Reddit","Twitter","Digg","Google Buzz","StumbleUpon","Google"])
    I have an issue if I do uncheck a box not at the end..then save and try to use setValue() on the new data anything after the box I unchecked no longer gets selected.

    sc1.png

    sc2.png

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    81
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    That's not the proper syntax for a CheckboxGroup setValue.

    It's either:
    Code:
    setValue([true, true, true, true, true, true, true, true]);
    or
    Code:
    setValue("Facebook,Linked In,Reddit,Twitter,Digg,Google Buzz,StumbleUpon,Google");

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    56
    Vote Rating
    1
    Bob Wilson is on a distinguished road

      0  

    Default Basic form bulk load

    Basic form bulk load


    Hello,

    I've tried to use those syntaxes to bulk load a checkbox group from a Json Ajax request, but it doesn't work.
    My checkboxgroup is like this :

    Code:
    id: 'Xdata',
    name: 'Xdata',
    xtype: 'checkboxgroup',
    fieldLabel: 'The field 01',
    items: [
        {
        id: 'data_1',
        name: 'data',
        boxLabel: 'A',
        inputValue: 'A'
    },        {
        id: 'data_2',
        name: 'data',
        boxLabel: 'B',
        inputValue: 'B'
    },        {
        id: 'data_3',
        name: 'data',
        boxLabel: 'C',
        inputValue: 'C'
    }]
    My form load is like this :
    Code:
    iCoreForm.getForm().load({
        url: '../(AJAXLOAD)?openagent',
        
        failure: function(form, action) {
            Ext.Msg.alert("Load failed");
        }
    });
    My server request answer is like this :
    Code:
    {
        success: true,
        data: {
            Xdata: [true, false, true]
        }
    }
    
    
    OR LIKE THIS :
    
    
    {
        success: true,
        data: {
            Xdata: ["A, B"]
        }
    }
    
    
    OR LIKE THIS
    
    
    {
        success: true,
        data: {
            Xdata: ["A", "B"]
        }
    }
    
    
    OR LIKE THIS
    
    
    {
        success: true,
        data: {
            Xdata: [{"A": true}, {"B": true}]
        }
    }
    
    
    OR LIKE THIS
    
    
    {
        success: true,
        data: {
            Xdata: [{boxLabel :"A", checked: true}, {boxLabel:"B", checked: true}]
        }
    }
    ... I stop here all the combinations I've tried

  4. #4
    Sencha User
    Join Date
    Dec 2009
    Posts
    364
    Vote Rating
    2
    raj_plays is on a distinguished road

      0  

    Default setValue with names not working

    setValue with names not working


    Hi,
    I have a checkboxgroup with checkboxes defined as
    Code:
    id: 'daysCheckboxGroup',
    xtype: 'checkboxgroup',
    fieldLabel: 'Select Days',
    columns: 4,
    items: [
    {
        name: 'day_1',
        inputValue: 1,
        boxLabel: 'Mon'
    }, {
        name: 'day_2',
        inputValue: 2,
        boxLabel: 'Tue'
    } {
        name: 'day_3',
        inputValue: 3,
        boxLabel: 'Wed'
    }]
    After the chechbox group is rendered, if I do
    Ext.getCmp('daysCheckboxGroup').setValue('day_1,day_2');
    it does not work but according to the API docs it should.
    Passing an array of bolleans to setValue works but I want to pass a string of names.

    Please help.

Similar Threads

  1. beginner: getValue and setValue on CheckboxGroup
    By Maik (SL) in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 30 Mar 2010, 10:39 PM
  2. Replies: 0
    Last Post: 26 Dec 2009, 6:14 PM
  3. Replies: 3
    Last Post: 30 Nov 2009, 7:23 AM
  4. Replies: 22
    Last Post: 4 Jun 2009, 2:25 PM

Thread Participants: 3