如何使用jQGrid编辑表格中的单元格?

时间:2013-12-11 10:34:24

标签: jquery jqgrid

如何使用Jquery编辑单元格。我想编辑单元格而不是整行?

jQuery("#list2").jqGrid({
    cellEdit: true,
    cellsubmit: 'remote',
    cellurl: "/proiecte/edit",
    onSelectCell : function(rowid,iCol,cellcontent,e)    {
          alert("Tralala");
    }


})

here类似,但使用jqgrid ...

1 个答案:

答案 0 :(得分:0)

最后我想出来了!

colModel:[

        {name:'name',index:'name', width:'15%',title: false},

        {name:'finished',index:'finished', width:'2%',title: false},

        {name:'client',index:'client', width:'7%',title: false},

        {name:'manager',index:'manager', width:'7%',title: false,editable: true},

        {name:'etapaName',index:'etapaName', width:'5%',title: false},

        {name:'deadline',index:'deadline', width:'7%',title: false,editable: true},

        {name:'lastactivity',index:'lastactivity', width:'6%',title: false,editable: true},     

        {name:'estimated',index:'estimated', width:'3%',title: false,editable: true},     

        {name:'worked',index:'worked', width:'5%',title: false} ,

        {name:'remove',index:'remove', width:'2%', sortable:false}


    ],

问题是缺少“可编辑:真实”部分!!!