1. #11
    Ext User
    Join Date
    Sep 2007
    Posts
    2
    Vote Rating
    0
    dlems is on a distinguished road

      0  

    Exclamation


    Just encountered the same bug. So bump from me too.
    A working Ext 1.1.1 patch exists, you can can find it here: http://extjs.com/forum/showthread.php?t=11620
    -->

  2. #12
    Ext JS Premium Member cdomigan's Avatar
    Join Date
    Mar 2007
    Posts
    148
    Vote Rating
    1
    cdomigan is on a distinguished road

      0  

    Default


    Bump for the sake of all that is holy
    -->

  3. #13
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Hey everyone, sorry for the delay in getting to this one. Try this override and let me know what you think:
    Code:
    Ext.override(Ext.form.Radio, {
        onClick : function(){
        	if(this.el.dom.checked != this.checked){
        	    var els = this.el.up('form').select('input[name='+this.el.dom.name+']');
        	    els.each(function(el){
        	        if(el.dom.id == this.id){
        	            this.setValue(true);
        	        }else{
        	            Ext.getCmp(el.dom.id).setValue(false);    	        
        	        }
        	    }, this);
            }
        }
    });
    Here's a simple test case:
    Code:
    Ext.onReady(function(){
        var simple = new Ext.form.FormPanel({
        	bodyStyle: 'padding:15px',
            labelWidth: 75,
            width: 400,
            height: 150,
            renderTo: document.body,
            items: [{
            	xtype: 'radio',
            	fieldLabel: 'Browser',
        		boxLabel: 'Internet Explorer',
        		inputValue: 'IE',
        		id: 'browserGroupIE',
        		name: 'browserGroup',
        		checked: true
        	},{
        		xtype: 'radio',
        		labelSeparator: '',
        		boxLabel: 'Firefox',
        		inputValue: 'FF',
        		id: 'browserGroupFF',
        		name: 'browserGroup',
        		checked: false
        	},{
        		xtype: 'radio',
        		labelSeparator: '',
        		boxLabel: 'Other',
        		inputValue: 'Other',
        		id: 'browserGroupOther',
        		name: 'browserGroup',
        		checked: false,
        		listeners: {
                        check: function(cb, checked) {
                            Ext.getCmp('nameField').setVisible(checked);
                        }
                    }
        	},{
        		xtype: 'textfield',
        		fieldLabel: '',
        		labelSeparator: '',
        		name: 'nameField',
        		id: 'nameField',
        		hidden: true,
        		width: 220
        	}],
        	buttons: [
        		{text:'Save'},
        		{text:'Cancel'}
        	]
        });
    });
    -->

  4. #14
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Default


    This really works!
    -->

  5. #15
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    218
    Vote Rating
    0
    ZooKeeper is on a distinguished road

      0  

    Default


    Thanks for the effort. Is this fix for Ext2.0?
    Tried with 1.1.1 proj, looks like nothing changed.
    -->

  6. #16
    Ext User
    Join Date
    Jan 2008
    Posts
    11
    Vote Rating
    0
    zergworld is on a distinguished road

      0  

    Default


    Works for me, although I had to add fireEvent("check") at the end of the for-each loop so that my event handler would run.
    -->

  7. #17
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    607
    Vote Rating
    1
    mdissel is on a distinguished road

      0  

    Default


    Why isn't this bug solved in the svn (2.0) release yet?
    -->

  8. #18
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Just haven't checked it in yet. I was also wanting to patch 1.1, and just haven't gotten back to it. I'll check it in shortly.
    -->

  9. #19
    Ext User mdm-adph's Avatar
    Join Date
    May 2007
    Posts
    187
    Vote Rating
    0
    mdm-adph is on a distinguished road

      0  

    Default


    Thanks for the fix!
    -->

  10. #20
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Virginia, USA
    Posts
    490
    Vote Rating
    -1
    vtswingkid is on a distinguished road

      0  

    Default


    This override assumes that the radios are being used in a form.
    What about a toolbar or something all together different?

    Code:
    Ext.override(Ext.form.Radio, { onClick : function(){ if(this.el.dom.checked != this.checked){ var p=this.el.up('form'); if(!p)p=Ext.fly(document.body); //if this radio doesn't belong to a form then search the body var els = p.select('input[name='+this.el.dom.name+']'); els.each(function(el){ if(el.dom.id == this.id){ this.setValue(true); }else{ Ext.getCmp(el.dom.id).setValue(false); } }, this); } } });
    EDIT: I wrote an extension for (multiple) radios. Each radio with the same name fires the events and it is form load and submit friendly.
    http://extjs.com/forum/showthread.php?t=23250
    -->

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar