我有一个启用了 cellEdit 的 jqgrid。我想卡住前两列。谁能帮我解决这个问题吗? 这是我的代码。
jQuery("#grid1").jqGrid({
//url:"${context}/listOptys.do",
datatype: "json",
//mtype:"POST",
height: '100%',
width: 935,
//autoWidth:true,
colNames:['','','',' Name', ' Number', 'Volume','Probability', 'Date', 'Status'],
colModel:[
{name:'Sk',index:'Sk', hidden:true,frozen:true},
{name:'pkId',index:'pkId', hidden:true,frozen:true},
{name:'projectsk',index:'projectsk', hidden:true,frozen:true},
{name:'opportunityName',index:'opportunityName', width:240, align:"left", sortable:false,frozen:true},
{name:'number',index:'number', width:70, align:"center", sortable:false},
{name:'volume',index:'volume', width:70, align:"center", sortable:false},
{name:'probablity',index:'probablity', width:70, align:"center", sortable:false},
{name:'date',index:'date', width:70, align:"center", sortable:false},
{name:'status',index:'status', width:70, align:"center", sortable:false}
]
viewrecords: false,
altRows: true,
cellEdit:true,
multiselect:true,
shrinkToFit:false
});
jQuery("#grid1").jqGrid("setFrozenColumns");
提前致谢。
最佳答案
在 jqGrid 4.7 中无法使用卡住列编辑 jqGrid,但我在免费的 jqGrid 中实现了该功能,您可以从 GitHub 下载该功能。 。您可以在 the readme 中阅读有关免费 jqGrid 功能的更多信息。并在 the wiki 。例如here您可以直接从 GitHub 找到可用于测试免费 jqGrid 的 URL,无需下载。
关于java - 使用 editcell 启用卡住 jqgrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30305533/