Results 1 to 2 of 2

Thread: Problem in the method SetValues ??of formPanel

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Caracas
    Posts
    2
    Vote Rating
    0
      0  

    Default Problem in the method SetValues ??of formPanel

    REQUIRED INFORMATION

    Ext version tested:

    • SenchaTouch 2.0.1.1
    Browser versions tested against:
    • Chrome 22
    Description:

    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
    The result that was expected:
    • assign the value
    The result that occurs instead:
    • not assign the value of the field
    Test Case:
    Code:
        var form = Ext.Viewport.add({xtype : 'formpanel'
    items: [{
                xtype: 'fieldset',
                title: 'Tipo de bsqueda',
                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'});
    Debugging already done:
    • none
    Possible fix:
    • 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);

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    This has already been solved, you can test in 2.1.0 RC2
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Tags for this Thread

Posting Permissions

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