Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3850 in Sprint 29.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    591
    Vote Rating
    34
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default [2.1] radiofield group not able to assign/get value if ui='checkbox'

    [2.1] radiofield group not able to assign/get value if ui='checkbox'


    rem the ui config or change 'checkbox' to 'radio' and it will work.

    Code:
                var form = Ext.create('Ext.form.Panel', {
                    fullscreen: true,
                    items: [{
                        xtype: 'toolbar',
                        docked: 'top',
                        items: [{
                            text: 'set checked (senchatouch)',
                            handler: function (btn, evt) {
                                var value = 'senchatouch',
                                        radio = btn.up('formpanel').down('radiofield[name=product]');
                                if (!radio.setGroupValue(value)) {
                                    Ext.Msg.alert(value + ' was not found');
                                } // if
                            } // handler
                        }] // items (toolbar)
                    }, {
                        xtype: 'fieldset',
                        defaults: {
                            xtype: 'radiofield',
                            labelWidth: 180,
                            name: 'product',
                            ui: 'checkbox'
                        }, // defaults
                        items: [{
                            label: 'Ext JS',
                            value: 'extjs'
                        }, {
                            label: 'Sencha Touch',
                            value: 'senchatouch'
                        }, {
                            label: 'Sencha Designer',
                            value: 'designer'
                        }] // items (fieldset)
                    }] // items (panel)
                }); // create()
    The sample is from http://senchaexamples.com/2012/03/15...encha-touch-2/

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    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 mitchellsimoens has much to be proud of

      0  

    Default


    looks like the getSameGroupFields is trying to match elements with '.x-field-radio' cls but the fields have '.x-field-checkbox' so the element is not found resulting in the components not found.
    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.