prabhu p

prabhu p

  • 2k
  • 181
  • 98.1k

error: :1 Uncaught TypeError: Cannot read proper on json2-mi

Nov 16 2016 8:58 AM
<!-- Inject Script Filtered -->
<!-- Inject Script Filtered -->
<!-- Inject Script Filtered -->
<!-- Inject Script Filtered -->
<!-- Inject Script Filtered -->
<!-- Inject Script Filtered -->
 
 
 
 
 
function FunctionRetunrSave(jsondata) {
debugger;
$('#<%= TrGrid.ClientID %>').show();
// $("#list1").jqGrid("clearGridData", true);
------- 
$(document).ready(function() {  -- iam  getting that error on this line
------------------
var lastsel2;
jQuery("#list1").jqGrid({
datatype: "local",
colNames: ['StockistCode', 'StockistName', 'DIVISION_NAME'],
colModel: [
{ name: 'StockistCode', index: 'StockistCode', width: 500 },
{ name: 'StockistName', index: 'StockistName', width: 500 },
{ name: 'DIVISION_NAME', index: 'DIVISION_NAME', width: 500 },
],
pager: jQuery('#pager1'),
sortable: false,
viewrecords: true,
caption: "Query List",
width: 1100
}).navGrid(pager, { edit: false, add: true, del: false, refresh: true, search: false });
var mydata;
var thegrid = jQuery("#list1")[0];
if (jsondata != null) {
thegrid.addJSONData(JSON.parse(jsondata.responseText).d);
mydata = JSON.parse(jsondata.responseText).d;
}
var $grid = $("#list1");
for (var i = 0; i <= mydata.length; i++) {
jQuery("#list1").jqGrid('addRowData', i + 1, mydata[i]);
}
});
}
 
How to resolve this error ,Please do need full to me