2013-12-11 304 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} 


    ], 

問題是缺少「可編輯:真正的」部分!

相關問題