View Full Version : [MVC] How to get actioncolumn click event in controller using Component Query?

30 Apr 2013, 6:37 AM
i'm trying to get the event using.

'servlist > item[action=edit]': {
click: this.openWindowEditServ

but with no success...

1 May 2013, 4:29 PM
The actioncolumn doesn't have a click event I'm afraid. For each action item's handler you could fire an event on the actioncolumn itself using fireEvent() and you could then listen to the event on the actioncolumn in your controller.

2 May 2013, 5:54 AM
There another solution, putting an action to the action column..

xtype: 'actioncolumn',
width: 24,
action: 'edit',



'servlist actioncolumn[action=edit]': {
click: this.openWindowEditServ

And the fireEvent() works too!

Thanks! ~o)