Search code examples
jqgridtablecelleditor

why does jqGrid give "Error: No url is set" if cellSubmit is 'clientArray'?


using jqGridversion 3.7.2

I thought that if I set cellSubmit: 'clientArray' then the grid does NOT need a url to post data. I'm trynig to just capture the changed value locally and process it manually, not auto trigger a server event. Yet when I try to exit an edited cell I still get the "Error: No url is set" dialog.

grid options def:

$(".mytable").jqGrid({
    datatype: 'local',
    data: myData,
    colModel: colModelDef,
    sortname: 'date',
    sortorder: 'desc',
    width: 950,
    height: 550,
    shrinkToFit: false,
    rownumbers: true,
    multiselect: true,
    cellEdit: true,
    beforeSaveCell: function() {
        //rowid, cellname, value, iRow, iCol
        alert(arguments[2]);
    },
    cellSubmit: 'clientArray'
});

Solution

  • turns out it was a typo, should read "cellsubmit" not "cellSubmit" works like a charm. Thanks Tony!