-
21 Dec 2012 5:57 AM #1
[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.
The sample is from http://senchaexamples.com/2012/03/15...encha-touch-2/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()
-
21 Dec 2012 8:25 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3850
in
Sprint 29.


Reply With Quote