PDA

View Full Version : button in a compositefield?



jprosser
27 Jun 2010, 5:09 PM
HI Folks,
I was trying to use a compositefield to place a button to the left of a combobox field as a lazy-man's twintriggerfield, but I keep getting nailed by a
"field.isValid is not a function" as the button can't be validated.
I tried adding:
,combineErrors : false
,validateOnBlur : false
,validationEvent: false

But it's still trying to validate.
It's too bad, because it looks good and was easy to make.
Does anyone have any ideas?
Cheers,
-Joe

28 Jun 2010, 3:51 AM
HI Folks,
I was trying to use a compositefield to place a button to the left of a combobox field as a lazy-man's twintriggerfield, but I keep getting nailed by a
"field.isValid is not a function" as the button can't be validated.
I tried adding:
,combineErrors : false
,validateOnBlur : false
,validationEvent: false

But it's still trying to validate.
It's too bad, because it looks good and was easy to make.
Does anyone have any ideas?
Cheers,
-Joe

try this quick example:


new Ext.Window({
height : 200,
width : 400,
items : {
xtype : 'container',
layout : 'column',
items : [
{
xtype : 'container',
layout : 'form',
items : {
xtype : 'combo',
fieldLabel : "combo",
store : ['a','b','c']
}
},
{
xtype : 'button',
text : 'button here'

}
]
}





}).show();

jprosser
28 Jun 2010, 5:07 PM
THank you. that worked nicely.
best regards,
-Joe