I am getting thye following error on ie8
‘type’ is null or not an object jqxdata.js, line 7 character 11744
but working fine in chrome
and here is my code
var source = {
datatype: “json”,
data: { “Id”: val },
datafields: [
{ name: ‘Id’ },
{ name: ‘Name’ },
{ name: ‘Gender’ }
],
url: ‘@Url.Action(“MyAction”, “MyController”)’
};
var dataAdapter = new $.jqx.dataAdapter(source, {
downloadComplete: function (data, status, xhr)
{
},
loadComplete: function (data) {
},
loadError: function (xhr, status, error) {
}
});
$(“#jqxgrid”).jqxGrid(
{
autoshowloadelement: false,
source: dataAdapter,
theme: ‘custom’,
altrows: true,
sortable: true,
filterable: true,
enabletooltips: true,
enablehover: false,
showfilterrow: true,
height: 425,
ready: function () {
},
columns: [
{ text: ‘ID’, datafield: ‘Id’, align: ‘center’},
{ text: ‘Name’, datafield: ‘Name’, align: ‘center’ },
],
});
kindly let me know hoe to fix this issue