當我點擊添加/編輯按鈕時,它應該顯示部分視圖窗體爲模態彈出。如何在jqgrid上編輯/添加/刪除選項打開局部視圖彈出
$('#list').jqGrid({
caption: "Employee Details",
url: '/Employee/GetEmployee/',
datatype: "json",
contentType: "application/json; charset-utf-8",
mtype: 'GET',
colNames: ['Address', 'City', 'Id', 'Name'],
colModel: [
{ name: 'Address', index: 'Address', width: 150 },
{ name: 'City', index: 'City', width: 150 },
{ name: 'Id', index: 'Id', width: 150 },
{ name: 'Name', index: 'Name', width: 150 }
],
rowNum: 10,
loadonce: true
});
jQuery("#list").jqGrid('#pager', { edit: false, add: false, del: false});
我該如何做到這一點......任何幫助真的很感謝!