그리드 옵션에 아래내용 기입
sortorder : "desc",
sortable : true,
loadonce : true, //이옵션이 정렬시에 다시쿼리 안날리고 화면에서 하는거
//실제그리드
jQuery("#gridMain2").jqGrid(
{
url : urlGet,
mtype: 'POST',
datatype : 'json',
postData : { "schTxt1" : schTxt, "schMode" : 2},
async : false,
height : 120,
autowidth : true,
multiselect: true,
colNames : ['가입일','그룹번호','그룹명','상태'],
colModel : [
{ name : 'reg_date', index : 'reg_date', align : "center", width : 160 }
,{ name : 'group_sn', index : 'group_sn', align : "center",sorttype : "string" }
,{ name : 'group_name', align : "center"}
,{ name : 'status', formatter : typeForstatus, align : "center"}
],
pager : '#pager2',
rowList : [ 5, 10, 15, 20 ],
rowNum: 5,
viewrecords : true,
sortorder : "desc",
sortable : true,
loadonce : true,
ondblClickRow : function(rowid) {
// 자료조회 function 수행
fnSelGroupList(rowid);
}
});
'JSP·script·jquery' 카테고리의 다른 글
ajax async deprecated 에러 (0) | 2015.06.08 |
---|---|
ajax datatype 정상적으로 파싱 안될때 (0) | 2015.06.08 |
jqgrid paging (0) | 2015.05.18 |
jquery table 데이터 컨트롤 로우 클릭시 컬럼데이터 가져오기 (0) | 2015.05.17 |
jquery 이용 테이블 동일값 셀 병합 (0) | 2014.09.19 |