I am using dwr Ajax to return me a List
This is how I define my grid:
jQuery('#terminalGroups').jqGrid({
datatype: 'clientSide',
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'
});
Now, I get a structure back from Ajax call, and I want to add it using following command:
jQuery('#terminalGroups').addJSONData( result );
however, I get the JS error that “object does not support this property or method”. However, if I iterate through “result” and use
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top