본문 바로가기

jqgrid8

jqGrid 캡션(제목) 선택 시 접기/펼치기 1234 //jqgrid caption 클릭 시 접기/펼치기 기능 $("div.ui-jqgrid-titlebar").click(function (){ $("div.ui-jqgrid-titlebar a").trigger("click"); });Colored by Color Scriptercs 해당 소스를 jqGrid가 만들어지는 부분 다음에 작성하면 된다.jqGrid의 ▼모양의 버튼을 클릭하게되면 jqGrid가 접기/펼치기 기능이 실행되는데다음과 같이 작성하면 캡션을 클릭 했을 때도 똑같은 이벤트가 발생된다. jqGrid가 2개 이상이라면, 'div.ui-jqgrid-titlebar' 부분을 '#gview_[Grid Id] div.ui-jqgrid-titlebar'으로 변경해주면 된다. 2016. 9. 30.
jqGrid Cell Edit 벗어나기 jqGrid에서 CellEdit 모드 일 때 마우스가 Input에서 focus를 벗어 났을 때 Cell Save가 일어나게 해보자. .js 12345afterEditCell:function(rowid, cellname, value, iRow, iCol){ $("#"+rowid+"_"+cellname).blur(function(){ $("#grid").jqGrid("saveCell",iRow,iCol); });},Colored by Color Scriptercs 이렇게 하면 input 에서 focus를 잃었을 때 SaveCell이 실행된다. * Cell이 datepicker라면 적용하면 안된다. if문으로 예외를 주어야 한다. datepicker는 다른 방법을 해야한다. 2016. 9. 1.
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.
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.