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

      0  

    Default Extending RadioGroup class

    Extending RadioGroup class


    Hello,
    I want to add a custom function to the Ext.ux.RadioGroup class. So I added some code like

    Code:
    Ext.namespace('Ext.ux');
    
    Ext.ux.RadioGroup = function()
    {
     	Ext.ux.RadioGroup.superclass.constructor.call(this);
                //add custom function here  
    }
    
    Ext.extend(Ext.ux.RadioGroup, Ext.form.Field, 
    blah blah {
    But this fails on IE.

    What am I doing wrong?

    Regards

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

      0  

    Default


    It depends on the error message and the blah blah code.
    In this sample you're not extending the ux.RadioGroup, but you're creating a new class or override the existing ux.RadioGroup.

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

      0  

    Default


    I fixed the alignment 1.0.1

  4. #14
    Ext User
    Join Date
    Sep 2007
    Posts
    71
    Vote Rating
    0
    markfigley is on a distinguished road

      0  

    Default Adding custom function to the Ext.ux.RadioGroup class

    Adding custom function to the Ext.ux.RadioGroup class


    Hello mdissel,
    I think my previous mail was not clear enough.

    All I want to do is add a custom function to the existing Ext.ux.RadioGroup class. Can you help me with this?

    Regards

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

      0  

    Default


    Ext.override(Ext.ux.RadioGroup, {
    customFunction: function(){}
    });

  6. #16
    Ext User
    Join Date
    Nov 2007
    Posts
    2
    Vote Rating
    0
    pulen is on a distinguished road

      0  

    Default Error on Firebug

    Error on Firebug


    hello vtswingkid

    I just try your plugin and it was a good plugin.
    but i have some error on firebug.
    Code:
    [Exception... "'Error parsing selector, parsing failed at "]:checked"' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
    
    Line 0
    i think that because i use array name, like name:'radiobox[group1]',
    PHP Code:
        {
            
    xtype:'ux-radiogroup',
            
    fieldLabel:'group 1',
            
    name:'radiobox[group1]',
            
    horizontal:true,
            
    radios:[{
                
    value:1,
                
    boxLabel:'box 1',
                
    listeners:{
                    
    'check':function(r,c){
                        
    alert(r.boxLabel+": "+(c?"checked":"unchecked"));
                    }
                }
            }, {
                
    value:2,
                
    boxLabel:'box 2',
                
    checked:true
            
    }, {
                
    value:3,
                
    boxLabel:'box 3'    
            
    }]
        } 
    i don't know how to solve this. i just want radiogroup return in array variabel for radio name, after submit.

    like this with andrie select box:
    PHP Code:
                comboUnitkerja = new Ext.ux.Andrie.Select(Ext.applyIf({
                    
    id'unitkerja',
                    
    fieldLabel:'Unit Kerja',
                    
    multiSelect:true,
                    
    minLength:1,
                    
    anchor'95%',
                    
    hiddenName'kriteria[unitkerja]'                    
                
    },configComboUnitkerja)) 
    Regard
    nb: sorry for my bad english.

  7. #17
    Banned
    Join Date
    Jan 2008
    Posts
    120
    Vote Rating
    0
    israel is on a distinguished road

      0  

    Question YOU HAVE DEMO?

    YOU HAVE DEMO?


    YOU HAVE DEMO?

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

      0  

    Default


    I don't have a live demo, but there is a test example included with the zip.


    pulen: I think the error is referring to the name you chose "radiobox[group1]". Try putting "radiobox" in for the name and see if it works. See if that name will work for any other type of field.

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

      0  

    Default


    I'm not sure, but the nested radiobuttons (configured in the array radios) are never destroyed in the onDestroy of the parent.. Correct?
    another small extension would be a single change event on the group that contains the old / new value from the grouped radio buttons.

  10. #20
    Banned
    Join Date
    Jan 2008
    Posts
    120
    Vote Rating
    0
    israel is on a distinguished road

      0  

    Default iwent demo

    iwent demo



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