Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    337
    Vote Rating
    0
    raj_plays is on a distinguished road

      0  

    Default checkboxgroup setValue does not work with a string of names

    checkboxgroup setValue does not work with a string of names


    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 checkbox 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 booleans to setValue works but I want to pass a string of names.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    What version of Ext JS 4.x.x are you using? We could not reproduce this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    337
    Vote Rating
    0
    raj_plays is on a distinguished road

      0  

    Default


    Its ver. 3.3.1.
    All other overloaded versions of setValue() work but not this one.