1
버튼에 onclick 메소드를 사용하지 않도록 명시한 경우에도 행에 추가 한 버튼은 여전히 포스트 백합니다 (onclick = 'return false;').). 나는 그 격자를 포스트를하고있다. 나는 포스트 백을 방지하고 내 자신의 커스텀 팝업 폼을 보여주기 위해 노력하고있다.JQGrid에서 나는 뒤로 버튼을 추가 할 행 버튼을 추가하려고합니다.
gridComplete: function(){
var ids = $('#jqGridControl1').jqGrid('getDataIDs');
for(var i=0;i < ids.length;i++){
var rowid = ids[i];
de = "<input type='image' title='Delete this record.' src='../images/icn_delete.gif' onclick=' return false;' style='border-width:0px;'/>";
ee = "<input type='image' title='Edit this record.' src='../images/icn_edit.gif' onclick=' return false;' style='border-width:0px;' />";
ve = "<input type='image' title='View related information.' src='../images/house.gif' onclick='return false;' style='border-width:0px;' />";
pe = "<input type='image' title='Print' src='../images/icn_printer.gif' onclick=' return false;' style='border-width:0px;' />";
je = "<input type='image' title='Appointment' src='../images/icn_journal.gif' onclick=' return false;' style='border-width:0px;' />";
se = "<input type='image' title='Select' src='../images/icn_select.gif' onclick=' return false;' style='border-width:0px;' />";
jQuery('#jqGridControl1').jqGrid('setRowData',ids[i],{act:de+ee+ve+pe+je+se});
}