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
    8
    Vote Rating
    0
    zlei is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,144
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,144
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This has been fixed for the 4.2.1 release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1