0

グリッドデータを編集して、後で投稿できるようにグリッド自体に保存しようとしています。

しかし、保存する行を編集した後にEnterキーを押すと、次の場所でjquery1.4.2.min.js無効な引数」というjavascriptエラーが発生します。

if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);

VS2008でAsp.netMVC2を使用しています

これが私のJSです

$(function() {
    pageloadButtons();
    $('.auto').autoNumeric();
    var lastsel2;
    // $('.alphanumerich').lettersonly();
    jQuery('#jgrid').jqGrid({
        autowidth: true,
        altRows: true,
        altclass: 'grdAltRwClr',
        datatype: 'xml',
        forceFit: true,
        gridview: true,
        mtype: 'post',
        height: 190,
        rowNum: 0,
        postData: { offid: function() { return $('#p_offid').val(); },
            calendarid: function() { return $('#p_calendarid').val(); }
        },
        url: window.rootPath + 'AttBulkEntry/JGridData',
        editUrl: 'clientArray',
        cellSubmit: 'clientArray',
        beforeSelectRow: function() { return true; },
        onSelectRow: function(id) {
        if (id && id !== lastsel2) {
            jQuery("#jgrid").saveRow(lastsel2, false, 'clientArray');
                //jQuery('#jgrid').jqGrid('saveRow', lastsel2, function() { alert('saved'); }, 'clientArray');
                jQuery('#jgrid').editRow(id, true);
                lastsel2 = id;
            }
        },
        gridComplete: function() {
            GridComplete();
        },
        colModel: [
              { name: 'act', label: 'View', resizable: false, search: false, sortable: false, title: false, width: 6, index: 'act' }
            , { name: 'attndid', label: 'Attendance ID', width: 15, index: 'attndid' }
            , { name: 'emphistid', label: 'Emp.Hist.ID', width: 22, index: 'emphistid' }
            , { name: 'ename', label: 'Employee Name', width: 20, index: 'ename' }
            , { name: 'paymonth', label: 'Pay Month', width: 12, index: 'paymonth' }
            , { name: 'absent', label: 'Absence', width: 10, index: 'absent', editable: true, edittype: 'text' }
            , { name: 'sanctioned', label: 'Sanctioned', width: 15, index: 'sanctioned', editable: true, edittype: 'text' }
            , { name: 'EL', label: 'EL', width: 5, index: 'EL', editable: true, edittype: 'text' }

            ]

    });


});

私は何か間違ったことをしていますか?

4

1 に答える 1

4

「editUrl」パラメータの正しい名前:editurl

于 2012-06-15T14:37:39.533 に答える