2013-12-11 123 views
0

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

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


}) 

here但使用的jqGrid ...

回答

0

Finnally我想通了!

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} 


    ], 

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

相关问题