2014-05-07 20 views
0

我正在使用jqgrid,我需要通過單擊編輯按鈕更新記錄內聯,進行一些更改,然後單擊保存按鈕。更新記錄時出現錯誤窗口。在jqgrid中更新記錄不起作用

HTML:

<table id="grid"></table> 
<div id="pager"></div> 

Here是我的小提琴,

有人建議需要做什麼呢?

感謝

回答

0

參考這方面的工作聯編輯jsfiddle

$("#grid").jqGrid({ 
data: mydata, 
datatype: "local", 
colNames: ["Name", "Country", "Continent"], 
colModel: [{ 
    name: 'name', 
    index: 'name', 
    editable: true, 
}, { 
    name: 'country', 
    index: 'country', 
    editable: true, 
}, { 
    name: 'continent', 
    index: 'continent', 
    editable: true, 
}], 
pager: '#pager', 
'cellEdit': true, 
'cellsubmit' : 'clientArray', 
editurl: 'clientArray' 
}); 
+0

我需要有一個編輯和保存按鈕,我的要求說...... – steeve