reaper.br
13 Sep 2007, 2:07 PM
Hello all. I've tried to sort this problem the whole day, and i managed to, but i'm not satisfied with the solution, so, i'd like to share my code to see if anyone's got a better solution. Maybe someone could post and different way to to this...
Here's my problem: I have a borderLayout with West and center regions. On my west region i have a TreePanel and when i click on a node, it calls a new page on the center panel...
tree.on('click', function(node, e) {
var pnlConteudo = layout.findPanel('conteudo');
pnlConteudo.load({
url: 'EnviaEmail.asp',
scripts: true
});
});
After the page is loaded and i click on my comboBox inside my form, i get the el has no properties error. here's a code from one of the combos
new Ext.form.ComboBox({
width: 230,
fieldLabel: 'Departamento',
id: 'departamento',
typeAhead: true,
lazyRender: true,
mode: 'local',
triggerAction: 'all',
resizable: true,
forceSelection:true,
emptyText: 'Selecione um departamento',
hiddenName: 'depto',
valueField: 'email',
displayField: 'depto',
store: new Ext.data.SimpleStore({
fields: ['email', 'depto'],
data: [
.............................
]
}),
tabIndex: 8
})
Anyway, the form runs normally when i load the page directly on my browser.
well... any suggestions???
Thanks in advance.
Cheers
Here's my problem: I have a borderLayout with West and center regions. On my west region i have a TreePanel and when i click on a node, it calls a new page on the center panel...
tree.on('click', function(node, e) {
var pnlConteudo = layout.findPanel('conteudo');
pnlConteudo.load({
url: 'EnviaEmail.asp',
scripts: true
});
});
After the page is loaded and i click on my comboBox inside my form, i get the el has no properties error. here's a code from one of the combos
new Ext.form.ComboBox({
width: 230,
fieldLabel: 'Departamento',
id: 'departamento',
typeAhead: true,
lazyRender: true,
mode: 'local',
triggerAction: 'all',
resizable: true,
forceSelection:true,
emptyText: 'Selecione um departamento',
hiddenName: 'depto',
valueField: 'email',
displayField: 'depto',
store: new Ext.data.SimpleStore({
fields: ['email', 'depto'],
data: [
.............................
]
}),
tabIndex: 8
})
Anyway, the form runs normally when i load the page directly on my browser.
well... any suggestions???
Thanks in advance.
Cheers