使用editUrl的JqGrid InlineEdit:’clientArray’无法保存
我正在尝试编辑网格数据并将其保存到网格本身以便以后发布。
但是我在jquery1.4.2.min.js
收到一个javascript错误,当我在编辑要保存的行后按Enter键时,在以下位置说“ 无效参数 ”。
if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);
我在VS2008上使用Asp.net MVC2
这是我的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' } ] }); });
难道我做错了什么 ?
“editUrl”参数的正确名称: editurl
。
- 如何在asp.net MVC中使用jquery模式弹出窗口打开局部视图?
- validation动态添加的控件
- jquery metismenu无法使用AngularJS控制器加载数据异步
- Kendo网格:如何检查所选行的所有复选框?
- 我试图在我的MVC ASP.NET应用程序中找到一个构建CSS字符串的解决方案,请问?
- 在jQuery AJAX Success Callback中解析JSON List(通过C#)
- 在JQueryUI选项卡选项上加载ASP.NET MVC局部视图
- MVC / JQueryvalidation不接受逗号作为小数分隔符
- 将一个下拉列表的值添加到路由而不是作为jscript提交页面上的查询字符串?