jquery.jqGrid.min.js:426 Uncaught TypeError: Cannot read property 'msie' of undefined
i am having this issue when i used jqgrid in asp dot net mvc 5 to use jqtreegrid.
@*<script src="~/Scripts/jquery-1.10.2.min.js"></script>*@
<script src="~/Scripts/jquery-3.2.1.min.js"></script>
<script src="~/Scripts/jquery.jqGrid.min.js"></script>
<script src="~/Scripts/i18n/grid.locale-es.js"></script>
<link href="~/Scripts/jquery-ui.css" rel="stylesheet" />
<link href="~/Scripts/ui.jqgrid.css" rel="stylesheet" />
<link href="~/Scripts/ui.jqgrid-bootstrap.css" rel="stylesheet" />
jQuery('#tree').jqGrid({
"url": "~/App_Data/Dept.json",
"colModel":[
{
"name":"category_id",
"index":"accounts.account_id",
"key":true,
"hidden":true,
"width":50
}, {
"name": "name",
"index": "name",
//"sorttype":"string",
"sortable": false,
"label": " ",
"width": 270
},{
"name": "0-30 Days",
"index": "0-30 Days",
//"sorttype":"string",
"sortable": false,
"label": "0-30 days",
"width": 75
}, {
"name": "31-60 Days",
"index": "31-60 Days",
//"sorttype":"string",
"sortable": false,
"label": "31-60 days",
"width": 75
}, {
"name": "60+ Days",
"index": "60+ Days",
//"sorttype":"string",
"sortable": false,
"label": "60+ days",
"width": 75
}, {
"name": "Total Days",
"index": "Total Days",
//"sorttype":"string",
"sortable": false,
"label": "Total",
"width": 75
}, {
"name":"$IDs",
"index": "$IDs",
//"sorttype":"numeric",
"sortable": false,
"label":"$Amount Identified",
"width":100,
"align":"right"
},{
"name":"$Recovered",
"index":"$Recovered",
//"sorttype":"int",
"sortable": false,
"label":"$Amount Recovered",
"width":120,
"align":"right"
},{
"name":"$Pending",
"index":"$Pending",
//"sorttype":"string",
"sortable": false,
"label":"$Amount Adjusted",
"width":100
}, {
"name": "$Pending",
"index": "$Pending",
//"sorttype":"string",
"sortable": false,
"label": "$Outstanding Inventory",
"width": 130
},{
"name":"lft",
"hidden":true
},{
"name":"rgt",
"hidden":true
},{
"name":"level",
"hidden":true
},{
"name":"uiicon",
"hidden":true
}
],
"width":"1000",
"hoverrows":false,
"viewrecords":false,
"gridview":true,
"height":"auto",
"sortname":"lft",
"loadonce":true,
"rowNum":100,
"scrollrows":true,
// enable tree grid
"treeGrid":true,
// which column is expandable
"ExpandColumn":"name",
// datatype
"treedatatype":"json",
// the model used
"treeGridModel":"nested",
// configuration of the data comming from server
"treeReader":{
"left_field":"lft",
"right_field":"rgt",
"level_field":"level",
"leaf_field":"isLeaf",
"expanded_field":"expanded",
"loaded":"loaded",
"icon_field":"icon"
},
//"sortorder":"asc",
"datatype":"json",
"pager":"#pager"
});