Results 1 to 2 of 2

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

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3850 in a recent build.
  1. #1
    Sencha Premium User
    Join Date
    Feb 2012
    Berne, Switzerland
    Vote Rating

    Default [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.

                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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts