I have the code as follows:
$(function () { jQuery("#list48").jqGrid({ datatype: "xml", url: 'server.java', mtype: "POST", colNames:['Inv No','Date'], colModel:[ {name:'id',index:'id', width:60,}, {name:'invdate',index:'invdate', width:90} ], width: 600, caption: "Grouping Array Data", loadComplete: function (data) { console.log("### data: " , data); //Document console.log("### data.length: " , data.length); //undefined } }); }) After server response the table is contained by data. Everythig looks correct. Is there any any idea why the data.length is undefined?
datais the xml document you loaded (like the docs indicate), then it does of course not have a.lengthproperty. What did you expect it to be?