jQWidgets Forums

jQuery UI Widgets Forums Grid JQXGrid in IE8

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JQXGrid in IE8 #48432

    Gowri
    Participant

    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

    JQXGrid in IE8 #48433

    Peter Stoev
    Keymaster

    Hi Gowri,

    The problem is in this code: { text: ‘Name’, datafield: ‘Name’, align: ‘center’ },
    ],

    There’s an additional ‘,’ which should be removed. IE8 is more strict for Syntax errors.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.