jQWidgets Forums

jQuery UI Widgets Forums Grid Editable/filterable grid with checkbox throws an error when editing

This topic contains 3 replies, has 2 voices, and was last updated by  5203013123036357125256 12 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hi!

    I have an editable/filterable grid with a checkbox column called ‘Available’ (script code below).
    I can change the checkbox values if I do not have any filter input in the filterrow, but if I enter anything in my filterrow and then try to change a checkbox value in the resulting grid I get an jqxgrid.js error:

    jqxgrid.js line 7, character 96702
    SCRIPT5007: Can not set value for the property Available: object is null or undefined

    How can I fix or work around this?

    Best regards,
    Per Eivind Jenssen,
    Developer, Oppad as

    ==========================

    var source = {
    datatype: “json”,
    datafields: [
    { name: ‘Productname’ },
    { name: ‘Available’ /*, type: ‘bool’*/ }
    ],
    async: false,
    cache: false,
    url: ‘@Url.Content(“Default1/GetData”)’,
    filter: function () {
    $(“#jqxgrid”).jqxGrid(‘updatebounddata’);
    },
    sort: function() {
    $(“#jqxgrid”).jqxGrid(‘updatebounddata’);
    }
    };

    var dataAdapter = new $.jqx.dataAdapter(source);
    $(“#jqxgrid”).jqxGrid({
    source: dataAdapter,
    editable: true,
    sortable: true,
    filterable: true,
    showfilterrow: true,
    columns: [
    {
    text: “Productname”,
    datafield: “Productname”,
    filtertype: ‘textbox’,
    filtercondition: ‘starts_with’
    },
    {
    text: “Available”,
    datafield: “Available”,
    columntype: ‘checkbox’,
    filterable: false
    }
    ]
    });

    ==========================


    Peter Stoev
    Keymaster

    Hi JAG7070,

    Could you provide a sample data that you use for binding the Grid so we can test the specific scenario?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    This is the readout from Internet Explorer debug window:
    [{“Productname”:”Nexus 7″,”Available”:false},{“Productname”:”iPad mini”,”Available”:false},{“Productname”:”Washingboard”,”Available”:true}]

    Best regards,
    Per Eivind Jenssen

    Update: This has been confirmed by jQWidgets Team to be an issue that will be resolved in the next release.

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

You must be logged in to reply to this topic.