PDA

View Full Version : tree listener action to form



crashT
29 Oct 2011, 3:08 AM
Hello, how can I respond in the form "sl_config" to load it with the data store? :-/
"me.sl_config.load ();" is probably not correct?
Thank you for your help


Ext.applyIf(me, {
items: [
{
xtype: 'treepanel',
name: 'cat',
id: 'cat',
width: 200,
autoScroll: true,
title: 'Kategorien',
store: 'categories',
region: 'west',
viewConfig: {
/*plugins: {
ptype: 'treeviewdragdrop'
}*/
},
listeners:{
itemclick: function(n){
console.info(n);
me.sl_config.load();
}
}
},
{
xtype: 'panel',
preventHeader: true,
title: 'Gerüst',
region: 'center',
items: [
{
xtype: 'form',
margin: 5,
layout: {
type: 'auto'
},
bodyPadding: 10,
title: 'Slidereinstellungen',
name: 'sl_config',
id: 'sl_config',
items: [
{
xtype: 'container',
items: [
{
xtype: 'textfield', .......

can everybody help me?

crashT
29 Oct 2011, 5:37 AM
I have found the solution myself now.



Ext.getCmp('sl_config').load({

});