-
24 Oct 2012 8:42 AM #1
Problem in the method SetValues of formPanel
Problem in the method SetValues of formPanel
REQUIRED INFORMATION
Ext version tested:- SenchaTouch 2.0.1.1
- Chrome 22
Steps to reproduce the problem:- create a FormPanel with 3 or more radioFields with the same name and try to set the value of this field
- assign the value
- not assign the value of the field
Debugging already done:Code:var form = Ext.Viewport.add({xtype : 'formpanel' items: [{ xtype: 'fieldset', title: 'Tipo de búsqueda', defaults: { xtype: 'radiofield', name : 'searchType', labelAlign: 'left', labelWidth: '45%' }, items: [ { label: 'Cercana', value: '4'}, { label: 'Vista Actual', value: '5'}, { label: 'General', value: '2' } ] }] }); form.setValues({searchType : '2'});- none
- Changue in the file sdk/src/form/panel.js lines 497 to 499 for this:Code:
if (f.isRadio && value == f.originalValue) {// If it is a radio field just use setGroupValue which will handle all of the radio fields f.setChecked(true);
-
24 Oct 2012 11:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
This has already been solved, you can test in 2.1.0 RC2
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.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote