PDA

View Full Version : Ext.tree.Panel afteritemexpand event is not working in Mozilla Firefox browser



maurya971
27 Jan 2014, 3:02 AM
Ext.tree.Panel afteritemexpand event is not working in Mozilla Firefox browser, it is working in chrome. Please provide any solution.

Thanks

mdnaveed42
27 Jan 2014, 5:46 AM
Hi,

It's working for me, I have tested on FF 26.

Below is my code,


var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
children: [
{ text: "detention", leaf: true },
{ text: "homework", expanded: false, children: [
{ text: "book report", leaf: true },
{ text: "algebra", leaf: true}
] },
{ text: "buy lottery tickets", leaf: true }
]
}
});


Ext.create('Ext.tree.Panel', {
title: 'Simple Tree',
width: 200,
height: 150,
store: store,
rootVisible: false,
renderTo: Ext.getBody(),
listeners: {
afteritemexpand: function() {
alert('hurray');
}
}
});


If it is still not working for you, Kindly provide us more details.


Thanks,
Md Naveed