본문 바로가기

19

jqGrid옵션 정리, jqGrid Options 中 *현재 페이지는 번역이 아닙니다. jqGrid를 사용하면서 느꼈던 특징 등을 작성한 것입니다. http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options PropertyTypeDescriptionDefault1)Can be changed?ajaxGridOptionsobjectThis option allows to set global ajax settings for the grid when requesting data. Note that with this option it is possible to overwrite all current ajax settings in the grid including the error, complete and beforeSen.. 2016. 9. 1.
PDF파일 보여주기->출력 PDF파일을 브라우저에 보여주는 방법... chrome의 경우기본적으로 PDF viewer를 제공해주기 때문에 PDF파일을 base64로 변환하여 리턴 해주면, javascript 1window.open("data:application/pdf;base64, " + vjData.base64EncodedPDF);cs 이렇게 해주면 새 창으로 PDF를 볼 수 있습니다. IE의 경우브라우저에서 PDF viewer를 기본으로 제공해주지 않습니다.PDF를 볼 수 있는 프로그램(예:Acrobat Reader DC)를 설치하면 브라우저에서도 볼 수 있지만, Data URI를 지원하지도 않기 때문에 다른 방법으로 봐야 합니다. 몇 가지 방법을 찾던 도중에... java 12345678910byte[] fileByte =.. 2016. 7. 29.
jqgrid colmodel select/checkbox/datepicker 1234567891011121314151617181920212223242526//체크edittype:"checkbox", editoptions:{value:"Y:N"} //데이트피커editoptions:{dataInit:function(el){$(el).datepicker({dateFormat:'yy-mm-dd',onClose :grid_Datepicker});}}, function grid_Datepicker(text, obj){ $("#grid").jqGrid("saveCell", rowid, iCol); // cell 저장} //select//SB_ITEM_code => key:value로 된 var},{ label:'code', name:'code', align:'left', hidden:true.. 2016. 7. 5.
jqgrid cell value danyamic/calcuate jqGrid 데이터 로딩 시 특정 cell의 값을 동적?혹은 계산하여 임의로 넣기예)시작일과 마감일이 있는 경우 : 총 걸린 기간을 계산하여 넣기 colModel 작성 시 : 12345678910111213141516171819202122formatter: function (cellvalue, options, rowObject){var totalDay = countDay(마감일, 시작일); //countDay:총 일수 구하기return countYearMonthDay(totalDay) +" (" + totalDay + "일)";}function gfnCountYearMonthDay(elapsedDay){ var year; var month; var day; if(elapsedDay 2016. 7. 5.