Forum
06:36
27/08/2008
Hi Tony,
I am getting an error “ts.p.colModel[idn] is undefined”. The datatype I am using is jasonstring and the datastr data I am passing is as follows
var response = "{'page':'1', 'total':1.0,'records':'2','rows':[{'v_id':'5','cell':['mi_adizero','live','mi team jersey mi teamwear shorts']},{'v_id':'2','cell':['mi_teamwear','live','mi team jersey mi teamwear shorts']}]}”
The functiona I am using to build the grid is
jQuery(document).ready(function(){
jQuery(”#list2″).jqGrid({
url:'myurl',
datatype: 'jsonstring',
datastr : response,
colNames:['Id','Name', 'Email', 'Role'],
colModel:[
{name:'v_id',index:'v_id', width:30},
{name:'v_name',index:'v_name', width:150},
{name:'v_email',index:'v_email asc, invdate', width:200},
{name:'v_role',index:'v_role', width:150, align:"right"}
//{name:'tax',index:'tax', width:80, align:"right"},
//{name:'total',index:'total', width:80,align:"right"},
//{name:'note',index:'note', width:150, sortable:false}
],
pager: jQuery('#pager2'),
rowNum:10,
rowList:[10,20,30],
imgpath: 'pathtoimages',
sortname: 'v_id',
viewrecords: true,
sortorder: “desc”,
caption: “Vendor Listing”,
});
});
I would appreciate if you could find out the solution for me.
Thanks and Regards
Ranju
Most Users Ever Online: 715
Currently Online:
79 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66