Results 1 to 3 of 3

Thread: Ext JS 4.1.3 RadioGroup clearInvalid() doesn't seem to work ?

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9898 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    11
    Vote Rating
    0
      0  

    Default Ext JS 4.1.3 RadioGroup clearInvalid() doesn't seem to work ?

    it's returning
    TypeError: me.setError is not a function

    me.setError('');Base.js (line 806)



    searched the forum, and found a bug reported with markInvalid for RadioGroup.. wonder if they are related:

    http://www.sencha.com/forum/showthread.php?255009 [EXTJSIV-8341]

    Test case:

    Code:
    Ext.create('Ext.form.Panel', {
        title       : 'RadioGroup Example',
        width       : 300,
        bodyPadding : 10,
        renderTo    : Ext.getBody(),
        items       : [
            {
                xtype      : 'radiogroup',
                fieldLabel : 'Two Columns',
                // Arrange radio buttons into two columns, distributed vertically
                columns    : 2,
                vertical   : true,
                allowBlank : false,
                items      : [
                    { boxLabel : 'Item 1', name : 'rb', inputValue : '1' },
                    { boxLabel : 'Item 2', name : 'rb', inputValue : '2' },
                    { boxLabel : 'Item 3', name : 'rb', inputValue : '3' },
                    { boxLabel : 'Item 4', name : 'rb', inputValue : '4' },
                    { boxLabel : 'Item 5', name : 'rb', inputValue : '5' },
                    { boxLabel : 'Item 6', name : 'rb', inputValue : '6' }
                ]
            },
            {
                xtype : 'button',
                text  : 'clearInvalid',
                handler : function(button) {
                    var group = button.prev();
    
                    group.validate();
    
                    group.clearInvalid();
                }
            }
        ]
    });

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,020
    Vote Rating
    1363
      0  

    Default

    The issue you found and this one are similar but to make sure both get fixed I'm going to open this one and then link the bugs together.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,020
    Vote Rating
    1363
      0  

    Default

    This has been fixed for the 4.2.1 release.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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