nirvdrum
25 Oct 2012, 5:23 PM
Hi,
I'm fairly new to the whole context menu thing, but I've been working through the action grid example here:
http://docs.sencha.com/ext-js/4-1/#!/example/menu/action-grid.html
T (http://docs.sencha.com/ext-js/4-1/#!/example/menu/action-grid.html)his has been pretty helpful, but it assumes that the menu action handler has a named reference to the grid object in the current binding. I'm looking to use a factory of sorts and while I might be able to structure such that I can form a closure or get the binding right, it'd be more flexible if I could just access the arguments to the itemcontexthandler through the menu item. Barring that, if I could traverse from the action through the menu up to the parent grid, I could make do with that. Ultimately I just want the record for the current row.
I'm sure I could come up with a way to do this, but is there something built-in to ExtJS for this sort of stuff? Or what's the best practice around it?
Thanks,
Kevin
I'm fairly new to the whole context menu thing, but I've been working through the action grid example here:
http://docs.sencha.com/ext-js/4-1/#!/example/menu/action-grid.html
T (http://docs.sencha.com/ext-js/4-1/#!/example/menu/action-grid.html)his has been pretty helpful, but it assumes that the menu action handler has a named reference to the grid object in the current binding. I'm looking to use a factory of sorts and while I might be able to structure such that I can form a closure or get the binding right, it'd be more flexible if I could just access the arguments to the itemcontexthandler through the menu item. Barring that, if I could traverse from the action through the menu up to the parent grid, I could make do with that. Ultimately I just want the record for the current row.
I'm sure I could come up with a way to do this, but is there something built-in to ExtJS for this sort of stuff? Or what's the best practice around it?
Thanks,
Kevin