에이전트 상태 열에서 값이 "실행 중"인 행을 선택하려는 jqgrid가 있습니다. 나머지 상태에서는 행을 선택할 수 없습니다.
JQGrid 코드
datatype: "json",
contentType: 'application/json',
ajaxGridOptions: { contentType: 'application/json; charset=utf-8' },
colNames: ['Id', 'Machine Name', 'IP Address', 'Discovered Date', 'Agent Install Status', 'Agent Installation Date', 'Agent Status', 'Agent Version', 'Last HeartBeat Recieved'],
colModel: [
{ name: 'id', hidden: false, width: 15, key: true },
{ name: 'machineName', width: 120 },
{ name: 'ipAddress', width: 60 },
{ name: 'discoveredDate', width: 110, formatter: 'date', formatoptions: { srcformat: 'y-m-d', newformat: 'l, F d, Y' } },
{ name: 'agentInstallStatus', width: 70 },
{ name: 'agentInstallationDate', width: 110, formatter: 'date', formatoptions: { srcformat: 'y-m-d', newformat: 'l, F d, Y' } },
{ name: 'agentStatusName', width: 90 , edittype:'select', editoptions:{value:"Running"} },
{ name: 'agentVersion', width:50},
{ name: 'lastHeartBeatRecieved', width: 110, formatter: 'date', formatoptions: { srcformat: 'y-m-d', newformat: 'l, F d, Y' } }
],
sortname: 'id',
sortorder: 'asc',
loadonce: true,
viewrecords: true,
gridview: true,
width: gwdth,
height: 650,
rowNum: 10,
rowList: [10, 20, 30],
mtype: 'GET',
multiselect: true,
multipleSearch: true,
pager: "#jqGridPager"
});
실행 상태에 대해서만 체크 박스를 표시 할 수 있습니까?
저는이 환경에 완전히 익숙하지 않습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다