Worked on a new version that now works within an mvc style app without breaking existing workings.
Have updated my github with the new code.
Basically when the 1st render is called it attaches events to the gridview for each button and 1 all encompassing "actionbuttonclick" event
for actionbuttonclick you have the following
if the button definition passed through has an eventName property or a cls property set it will use these to create the events required
actionbuttonclick: function(button, gridview, rowindex, colindex)
eg 1) button has eventName, this eventname will be triggered
this will set up loadrecord event on the gridview.
similarly the cls property will be used to interpret to an event with all non alpha chars will be removed and suffixed with "click"
loadrecord: function(gridview, rowindex, colindex)
wlll create the event btnloadrecordclick as follows
Finally, I added in the showIndex. This is exactly the same as hideIndex but in reverse, eg a truthy value to showIndex will show the button and a falsey value will cause it to hide.
btnloadrecordclick: function(gridview, rowindex, colindex)
GitHub Link: https://github.com/BinaryKitten/Ext....onButtonColumn