icebergdelphi
29 Nov 2011, 4:24 PM
Hi All, i need to fire a event in my treepanel node , but anything happens,i'm using this code:
listeners:{
itemclick:{
fn: function(){
Ext.Msg.alert('ExtJs is So Cool');
}
},
check this out, the rest of my code:
items: [
{
xtype: 'treepanel',
title: 'Catalogos',
height: 212,
iconCls:'catalogos',
forceLayout: true,
collapsed: true,
collapsible: true,
rootVisible: false,
border: false,
autoWidth: true,
root: {
text: '',
isTarget: false,
expanded: true,
checked: false,
allowDrag: false,
allowDrop: false,
editable: false,
qtip: 1,
children: [
{
text: 'Regiones',
children: [
{
text: 'Estados111',
leaf: true,
listeners:{
itemclick:{
fn: function(){
Ext.Msg.alert('ExtJs is So Cool');
}
},
}
},
{
text: 'Municipios',
leaf: true
}
]
},
What is going on¿ thanks.:-?
listeners:{
itemclick:{
fn: function(){
Ext.Msg.alert('ExtJs is So Cool');
}
},
check this out, the rest of my code:
items: [
{
xtype: 'treepanel',
title: 'Catalogos',
height: 212,
iconCls:'catalogos',
forceLayout: true,
collapsed: true,
collapsible: true,
rootVisible: false,
border: false,
autoWidth: true,
root: {
text: '',
isTarget: false,
expanded: true,
checked: false,
allowDrag: false,
allowDrop: false,
editable: false,
qtip: 1,
children: [
{
text: 'Regiones',
children: [
{
text: 'Estados111',
leaf: true,
listeners:{
itemclick:{
fn: function(){
Ext.Msg.alert('ExtJs is So Cool');
}
},
}
},
{
text: 'Municipios',
leaf: true
}
]
},
What is going on¿ thanks.:-?