PDA

View Full Version : Items Xtype Conflict With ID



praptoherlambang
1 Jul 2017, 6:39 PM
I have Problem with Items xtype on form panel,
i feel conflict with id,,

when remove id with comment //
problem go away,

question is, why xtype with id when hide panel and show again, xtype texfield not show?

1. this button +Tambah click
56543

2. Show normal Panel
56544

3. when click close button panel, and i click button +Tambah to show panel, why xtype pilih barang with id not show.. is this BUG ?
56545

i used extjs 2.x.x


here my code


{
xtype: 'textfield',
inputType:'hidden',
fieldLabel :'id',
name : 'kib_b_id',
id : 'kib_b_id',
readOnly: true,
},
{
layout:'column',
items:[{
defaults: {labelSeparator: ''},
columnWidth:.85,
layout: 'form',
items: [{
xtype:'textfield',
fieldLabel: 'Pilih Barang',
name: 'nama_aset',
id: 'nama_aset',
readOnly: true,
allowBlank: false,
width:250,
listeners:{'focus' : function(field){
this.blur();
win_popup_JenisBarang = showWinPopup_JenisBarang();
win_popup_JenisBarang.show();
}
}
}]
},{
columnWidth:.15,
layout: 'form',
align:'left',
items: [popup_jenis_barang]
}]
},




Please Help Me Guru...