可编辑的true在Jquery网格不起作用
editable true in Jquery Grid is not working
我想使Jq-Grid可编辑,我尝试了edit: true,但它不工作....
edit: true not working
$(document).ready(function() {
$("#list2").jqGrid({
url: '/Home/GetAll/',
datatype: "json",
contentType: "application/json; charset-utf-8",
mtype: 'GET',
colNames: ['Employee Name', 'Designation',
'Gender', 'DOB'
],
colModel: [
{ name: 'name', index: 'name', width: 150, editable: true },
{ name: 'DesignationID', index: 'DesignationID', width: 150, editable: true },
{ name: 'Gender', index: 'Gender', width: 100, editable: true, editable: true },
{ name: 'DOB', index: 'DOB', width: 150, editable: true }
],
rowNum: 10,
rowList: [5, 10, 15],
pager: '#pager2',
sortname: 'id',
height: 200,
viewrecords: true,
sortorder: "asc",
caption: "Employee Records"
});
jQuery("#list2").jqGrid('navGrid', '#pager2', {
edit: false,
add: false,
del: false
});
});
你犯了个小错误…在你的代码中把edit设为true而不是false
jQuery("#list2").jqGrid('navGrid', '#pager2', {
edit: true,
add: false,
del: false
});
相关文章:
- 剑道网格jQuery动画()问题
- $.每个jquery循环打印一个“;未定义的“;对于getJSON请求后的每个元素,网格数据都会完美地打印出来
- ext-js网格面板滚动条不适用于jquery
- asp.net网格视图中的面板-我如何在jquery中找到它
- Jquery网格在第二次加载时不工作
- jquery 网格中的 Spring 请求映射
- 最好的动态JavaScript/JQuery网格
- Jquery网格与Firefox的兼容问题
- JQuery网格分页不可见
- 平铺的jQuery网格
- 用javascript向jquery网格添加行
- MVC jquery网格不工作
- 不能用数据填充智能菜单jquery网格
- 过滤inffragistics jQuery网格控件时出现错误
- 砌体(JQuery网格)不工作
- 如何在内联jquery网格中定位删除对话框
- 可编辑的true在Jquery网格不起作用
- 扫雷器的JQuery网格递归(单击相邻的瓦片)
- 在jquery网格中隐藏页面导航器
- 绑定jQuery网格