heidtmare
3 Aug 2007, 8:51 AM
selecting the third radio button in the following fieldset sets off the 'check' event.
the problem is it only works the first time. subsequent checking does nothing :(
simple.fieldset(
{legend: 'Options', hideLabels:true, style:'text-align:left;'},
cacheOption0 = new Ext.form.Radio({
boxLabel: 'Quick search',
name: 'cacheOption',
inputValue: 0,
checked: true
}),
cacheOption1 = new Ext.form.Radio({
boxLabel: 'Precision search',
name: 'cacheOption',
inputValue: 1,
checked: false
}),
cacheOption2 = new Ext.form.Radio({
boxLabel: 'Cache search',
name: 'cacheOption',
inputValue: 2,
checked: false
}),
cacheId = new Ext.form.TextField({
fieldLabel: 'CacheId',
name: 'cacheId',
emptyText:'Cache Id...',
width:150
}).hide()
);
cacheOption2.on('check', function(){ alert('I ONLY ALERT ONCE!!!');/*cacheId.setVisible( this.checked );*/ });
P.S. this with 1.1
the problem is it only works the first time. subsequent checking does nothing :(
simple.fieldset(
{legend: 'Options', hideLabels:true, style:'text-align:left;'},
cacheOption0 = new Ext.form.Radio({
boxLabel: 'Quick search',
name: 'cacheOption',
inputValue: 0,
checked: true
}),
cacheOption1 = new Ext.form.Radio({
boxLabel: 'Precision search',
name: 'cacheOption',
inputValue: 1,
checked: false
}),
cacheOption2 = new Ext.form.Radio({
boxLabel: 'Cache search',
name: 'cacheOption',
inputValue: 2,
checked: false
}),
cacheId = new Ext.form.TextField({
fieldLabel: 'CacheId',
name: 'cacheId',
emptyText:'Cache Id...',
width:150
}).hide()
);
cacheOption2.on('check', function(){ alert('I ONLY ALERT ONCE!!!');/*cacheId.setVisible( this.checked );*/ });
P.S. this with 1.1