Uncaught Typeerror : #(...).jqxgrid is not a function will be raised when you use jqxgrid instead of jqxGrid because jqxgrid is not a function, jqxGrid is. Also your data binding is incorrect. You should bind it to adapter but you commented out that code.
What interesting is the code that attach click handler is still using firstchild selector, which will eventually apply to the invisible input.
All the logic above could be found in jqxgrid.js: _renderbuttoncell function.