Hello, I have a Kendo Grid I am creating from JSON data. I am attempting to pass a function to a custom Command button's click event within the grid to get that row's data when it is clicked. Due to my grid data coming from JSON, my command field's click event in my column array is stored as a string value.
In JSON, my command field looks as follows:
When the button is clicked in the grid, I am given the following Console error:
jquery-2.1.4.min.js:3 Uncaught TypeError: ((n.event.special[g.origType] || (intermediate value)).handle || g.handler).apply is not a function(…)
I have attempted to pass in testFunction as "eval(testFunction() );" and even attempted to recreate my column data with a New Function object instead of the string, however I could not get the column array to play nice with Kendo and consistently received e.chartAt errors when the grid attempted to parse. I used the following demo to create my column data dynamically:
I really would like to simply specify my function call from the JSON data. I have also thought about finding the Click event from within Kendo UI and attempting to parse my string there as well. I can't think of any other ways to get this to function from JSON data.