Hi everyone!
Is it possible to disable a radio button that belongs to a radio group?
I tried to use disable() and setDisabled(true) but it didn
Hi everyone!
Is it possible to disable a radio button that belongs to a radio group?
I tried to use disable() and setDisabled(true) but it didn
Try this.
Try to add this Standard override.Code:var crtRdo=new Ext.form.Radio({ xtype:"radio", name:"mtype", inputValue:"radiovalue" }); crtRdo.disable();
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); } } });
Msuresh, please look if I did right...
[CODE]
firstOption = new Ext.form.Radio({
xtype: 'radio',
inputValue: '1',
name: 'firstOption',
boxLabel: 'Listar os rate plans com o tipo e n
ExtJS 6.5
Code:Ext.define('Overrides.form.field.Radio', { override: 'Ext.form.field.Radio', initComponent: function (radio) { radio.dom.onclick = function(){ radio.setValue(!radio.value ); } } });
Thanks
Albanir Neves
Thank You.
It is working.
Semidot Infotech known as top mobile and web development company.