PDA

View Full Version : How to add a Ext.Action to a Ext.grid.ActionColumn as a handler?



martio
20 Oct 2010, 10:41 AM
How to add a Ext.Action to a Ext.grid.ActionColumn as a handler?

21 Oct 2010, 4:41 AM
ActionColumn doesn't use "Actions" from what I understand. You might want to just set the ActionColumn's handler to the Action.handler property.

Animal
21 Oct 2010, 5:08 AM
Maybe it should though. It's a bit like a button or a menu item or whatever. I'll take a look at the code. Maybe there's a Feature Request here...

Animal
21 Oct 2010, 5:15 AM
What happens if you use an Action as a config instead of a raw object? Looks like it should just use the text, iconCls and handler properties and work.

21 Oct 2010, 5:16 AM
Maybe it should though. It's a bit like a button or a menu item or whatever. I'll take a look at the code. Maybe there's a Feature Request here...

Agreed.