본문 바로가기

Language & Library/jqGrid6

jqGrid 헤더 클릭 시 정렬 (jqGrid header sort) 우선 참고 사이트 보기 ( http://trirand.com/blog/jqgrid/jqgrid.html ) [jqGrid Demos] -> [Items] 창에서 [New in version 3.6] -> [Sortable Rows] 참조 나 같은 경우 위와 같은 방식으로 했는데 헤더를 클릭해도 정렬이 안되었다.. --;그래서 아래와 같이 sortable: true와 loadonce : true 를 넣으니 되었다. jQuery("#sortrows").jqGrid({ sortable: true , url:'server.php?q=2', datatype: "json", colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel:.. 2013. 12. 31.
jqGrid 날짜(date: yyyymmdd) 관련 - 참조사이트(jqGrid Wiki) : http://www.trirand.com/jqgridwiki/doku.php?id=wiki:predefined_formatter - 해결책을 준 참조사이트: http://stackoverflow.com/questions/12803469/jqgrid-date-formatter-ymd ※ 문제(problem) I have a problem with the jqgrid Date formatter. in my DB table i have this dateformat "Ymd" like "20120219". Here the whole code for this column:$col = array(); $col["title"] = "Date"; $col["name"] = "d.. 2013. 12. 30.
jqGrid - 헤더 관련 예제 (헤더 병합/ 동적 헤더명) 아래는 셀렉트박스에서 선택한 값에 따라 헤더의 값이 바뀌는 예제이다. 만약 셀렉트박스에서 'A제품'을 선택하면 헤더에도 'A제품'이 표시된다. $("#grid").jqGrid({ sortable: true, datatype: 'local', colNames:['날짜','A Col', 'B Col', 'C Col'], colModel:[ {name:'date', index:'date', width:210, align:"center", formatter:'date', sorttype:'text', formatoptions:{srcformat:"Y-m-d", newformat:"Y-m-d"}}, {name:'ACol', index:'ACol', width:205, align:"right", sorttype:'.. 2013. 12. 30.
jqGrid footer 그리고 footer sum 예제 결과 그림: //jqGrid $("#grid").jqGrid({ sortable: true, datatype: "local", colNames:['종류','출고', '입고', '정산수량', '금액'], colModel:[ {name:'crateName', index:'crateName', width:160, align:'center', sorttype:'text', sortable:true,}, {name:'outQuantity', index:'outQuantity',width:165, align:"right", sorttype:'int', sortable:true, formatter: 'integer', formatoptions:{thousandsSeparator:","}}, {name:'inQuant.. 2013. 12. 26.
jqGrid 설정 1. 라이브러리 다운1-1. jqgrid 다운로드[] jqgrid 기초 스프링에서 쓰기|작성자 신발샛길http://www.trirand.com/blog/?page_id=6(현재(2013-12-04) jquery.jqgrid-4.5.4 버전 받음) 1-2. jqueryui 다운로드http://jqueryui.com/download(현재(2013-12-04) jquery-ui-1.10.3.custom 다운 받음)[출처] jqgrid 기초 스프링에서 쓰기|작성자 신발샛길 ->빨간박스 에러 나면, http://balhae79.tistory.com/225 참조 2013. 12. 5.
jqGrid 참조 사이트 정리 일기식으로 정리(whiteship)http://whiteship.tistory.com/2680 강좌식으로http://insnote.com/xe/kkang/322 jqGrid 사이트에서 ASP.NET MVC 참조 사이트http://www.trirand.net/demo/aspnet/mvc/jqgrid/ spring mvc 패턴으로 실제 소스http://marobiana.egloos.com/1038285 2013. 12. 4.
반응형