PDA

View Full Version : Checkbox duplicates



bujo
15 Aug 2010, 8:49 AM
Hello,

I am creating some checkboxes using the following code:
{xtype:'checkbox', fieldLabel:'test', name: 'liefname', id:'lief', checked:false, hidden:false, boxLabel: 'Lieferanschrift abweichend')

This works perfect so far (when I display the window the first time) - but when I close the window (xxx.hide()) and open it again it, the label test is shown twice (why) and the checkbox is not visisble anymore.

How can I force to refresh the window?

Regards
Jochen

ashaihullin
15 Aug 2010, 10:39 AM
Can you show more code!?

bujo
15 Aug 2010, 11:45 AM
Sure, the checkboxes are part of a two column Formpanel which is created using the following code



this.formPanel = new Ext.FormPanel({
layout: 'form',
items:[
... checkboxes ....
]
})


I think it has to do with the layout property...
My tests confirmed my thoughts. It was an issue with the layout property.

Regards
Jochen