PDA

View Full Version : How can i forbid chart's legenditem click event.



fanggy
21 May 2013, 5:49 PM
Ext.each(Ext.getCmp('barChart').legend.items, function(item) {
item.un('mousedown', item.events.mousedown.listeners[0].fn);
});

It worked well at first but I reload the data it became invalid. Any idea?

Thank you.

Daniil
21 May 2013, 9:38 PM
Do you re-execute that code after reloading the data?