0
我有一個jqGrid的,我需要給編輯的功能吧,當用戶點擊AA特定行,該行的細節應在彈出顯示...在jQgrid中編輯功能?
這是我的jQuery代碼在我看來
<table id="list" class="scroll" cellpadding="0" cellspacing="0" width="175"></table>
<script type="text/javascript">
$(function() {
jQuery("#list").jqGrid({
url: '/Home/GetStudents/',
datatype: 'json',
mtype: 'POST',
colNames: ['StudentID', 'FirstName', 'LastName', 'Email'],
colModel: [
{ name: 'StudentID', index: 'StudentID', width: 150, align: 'center',sortable:false },
{ name: 'FirstName', index: 'FirstName', width: 150, align: 'center', sortable: true },
{ name: 'LastName', index: 'LastName', width: 150, align: 'center', sortable: false },
{ name: 'Email', index: 'Email', width: 200, align: 'center', sortable: false}],
pager: jQuery('#pager'),
width:750,
rowNum: 15,
rowList: [5, 10, 20, 50],
sortname: 'StudentID',
sortorder: "asc",
viewrecords: true,
caption: ' My First JQgrid'
});
});
</script>