-
30 Jan 2008 6:44 AM #11
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
But this fails on IE.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 {
What am I doing wrong?
Regards
-
30 Jan 2008 6:58 AM #12
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.
-
30 Jan 2008 7:15 AM #13
I fixed the alignment 1.0.1
-
30 Jan 2008 7:27 AM #14
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
-
30 Jan 2008 8:51 AM #15
Ext.override(Ext.ux.RadioGroup, {
customFunction: function(){}
});
-
31 Jan 2008 11:36 PM #16
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.
i think that because i use array name, like name:'radiobox[group1]',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 don't know how to solve this. i just want radiogroup return in array variabel for radio name, after submit.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'
}]
}
like this with andrie select box:
RegardPHP Code:comboUnitkerja = new Ext.ux.Andrie.Select(Ext.applyIf({
id: 'unitkerja',
fieldLabel:'Unit Kerja',
multiSelect:true,
minLength:1,
anchor: '95%',
hiddenName: 'kriteria[unitkerja]'
},configComboUnitkerja))
nb: sorry for my bad english.
-
2 Feb 2008 4:43 PM #17
-
3 Feb 2008 8:19 AM #18
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.
-
4 Feb 2008 1:21 PM #19
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.
-
4 Feb 2008 8:35 PM #20


Reply With Quote