My grid has the following JSON:
{a:1, b:2, c[x:1, y:1]}
So, when I define the grid datafields they are:
datafields: [{ name : 'char_a', map : 'a'}, { name : 'char_b', map : 'b'},{ name : 'char_x', map : 'c>x'},{ name : 'char_y', map : 'c>y'}]
Which works fine. Now, I want to add another row to the table for the following json:
var json = {a:2, b:3, c[x:4, y:5]}
$('#jqxgrid').jqxGrid('addrow', null, json);
But this won’t work as it expects the data in the format:
var json = {a:2, b:3, x:4, y:5}
Is there a way to ask the grid to convert the data (it does this anyway) and then add it?