제목 | jqGrid 적용...도와 주세요!!!! | ||
---|---|---|---|
글쓴이 | 든이제 | 작성시각 | 2014/06/20 08:29:28 |
|
|||
현재 codeigniter를 사용하여...jqGrid를 적용 시키려 하는데... 정말 쉽지 않네요... 일단 테스트를 위하여....몇가지 데이터만 가지고 실행 하고 있는데... model에서 데이터를 가지고 와서... 뿌려 주는 과정에서... foreach($a as $row) { $responce->rows[$i]['id'] = $row['No']; $responce->rows[$i]['cell'] = array ( $row['No'], $row['Itemcode'], $row['Itemname'] // $row['FrgnName'], // $row['U_SWW'], // $row['In Stock(BOX)'], // $row['Sales Commited Qty(BOX)'], // $row['Incomming Qty(BOX)'] ); $i++; } echo json_encode($responce); 이부분을 실행 하면 echo로 인하여 첨부파일처럼....화면에는 뿌려 지는데...테이블 안으로 데이터가 들어 오질 안네요... 고수님들...아시는 분은 제발 답변 부탁 드립니다.... <---jquery 부분--> $(document).ready(function() { $("#list").jqGrid({ url: 'http://192.168.10.17:9999/application/libraries/jq_grid.php', //another controller function for generating data mtype : "POST", //Ajax request type. It also could be GET datatype: "json", //supported formats XML, JSON or Arrray colNames:["No","Product Code","Product Name"], colModel: [ {name:"No",index:"No", width:50, align:"left"}, {name:"Itemcode",index:"Itemcode", width:150, align:"left"}, {name:"Itemname",index:"Itemname", width:150, align:"left"} ], rowNum:10, width: 1200, height: 250, rowList:[10,20,30], pager: "#pager", sortname: "id", viewrecords: true, //rownumbers: true, //gridview: true, caption:"Product List" }); }); |
|||
다음글 | 가입 할수 없는 ID 설정 해놓고 회원 가입시 설정해... (9) | ||
이전글 | 자바 스크립트 -> php로 배열 넘길때 질문입니... (4) | ||
든이제
/
2014/06/26 08:25:06 /
추천
0
letsgolee님 정말로...그래야 할것 같습니다~ 저는 미국에 있는데...혹시 미국에 계신다면 꼭 사드릴께요~ ㅎㅎㅎ
|
letsgolee
/
2014/06/26 18:16:29 /
추천
0
미국에 갈 일있으면 연락할께요...ㅎㅎㅎ
|