PDA

View Full Version : Not able to listen to click event on a div a treecolumn



naren.nf
2 Feb 2014, 12:52 AM
I am trying to listen to click event on tree column using the below code on box ready.

me.mon(this.el, 'click', function(){alert("clicked"}, this.el);

But somehow I could not see the alert though I see the code for adding the managed listener is executed. I have also tried using delegate. Any thoughts or ideas will be greatly appreciated.

I see this should work based on the below post

http://www.sencha.com/forum/archive/index.php/t-143891.html?

greg.barry
5 Feb 2014, 3:39 PM
I was able to add it without an issue:

3cf

Thanks!
Greg

naren.nf
10 Feb 2014, 10:19 AM
Thanks for the detailed fiddle. I was not aware there was sencha fiddle.
I was try to listen for event on custom column which extends Tree Column. I think my question is incomplete here. I have raised another one. I will accept your answer for this question and close it.


http://www.sencha.com/forum/showthread.php?280753-Extjs-adding-an-click-event-listener-on-a-div-for-treecolumn-not-working.