Thank you for that information… However, i am still facing the problem. This is my code:
jQuery('#terminalGroups').jqGrid({
datatype: 'json',
colNames: ['Company','Name','Active'],
colModel: [
{name:'company', index:'company', width:500},
{name:'TG_NAME', index:'TG_NAME', width:300},
{name:'activeGroup', index:'activeGroup', width:195} ],
pager: jQuery('#terminalGroupPager'),
rowNum: 10,
rowList: [10,20,30],
sortorder: 'desc',
viewrecords: true,
imgpath: 'jquery/jqueryUI/css/sunny/images',
caption: 'Merchant Groups',
height: '490px'
});
var something = { “data”:[{'company':'1','TG_NAME':'1','activeGroup':'1'},{'company':'2','TG_NAME':'2','activeGroup':'2'}], “totalRows”:2, “totalPages”:1, “page”:1 };
jQuery('#terminalGroups')[0].addJSONData( something );
However, I get JS syntax error, and when I debug, it points to this code:
($.jgrid.useJSON===true&&typeof(JSON)==="object"&&typeof(JSON.parse)==="function")
any idea what might that be?