View Full Version : [INFOREQ] TreePanel containerclick Event

2 Jun 2010, 6:42 AM
Hi! I need to keep track of mouse clicks in my app and I'm adding a click event listener to the document i.e.

click : function(event){
All of the components of my app delegate the event to document but the TreePanel, the containerclick event is not bubbling, how can i do that so it reach the document?


2 Jun 2010, 10:44 AM
Looks like a bug or docs bug. I've grepped the sources:

grep -E 'fireEvent.*containerclick' -r .
./widgets/DataView.js: if(this.fireEvent("containerclick", this, e) !== false){

and the above is the only place where it is fired.

Moving this thread to bugs to get an explanation from the devel team.

2 Jun 2010, 11:29 AM
TreeEventModel.js Line 182

beforeEvent : function(e){
var node = this.getNode(e);
if(this.disabled || !node || !node.ui){
e.stopEvent(); // it enters here, The event is always stopped
return false;
return true;

Thanx Saki!