! 제품 버전을 정확하게 입력해 주세요.
제품 버전이 정확하게 기재되어 있지 않은 경우,
최신 버전을 기준으로 안내 드리므로
더욱 빠르고 명확한 안내를 위해
제품 버전을 정확하게 입력해 주세요!

Cannot read properties of undefined (reading 'CellMaker') > Q&A | 토론

본문 바로가기

Wijmo

Q&A | 토론

PureJS Cannot read properties of undefined (reading 'CellMaker')

페이지 정보

작성자 aarmani 작성일 2022-04-19 20:19 조회 1,598회 댓글 0건
제품 버전 : wijmo-es2015
컨트롤 이름 : CellMaker

본문

    var view_wrmcpage = new wijmo.collections.CollectionView(getData_wlist(), {

pageSize: 6

    });

    // 페이지 이동

    new wijmo.input.CollectionViewNavigator('#thePager02', {

byPage: true,

headerFormat: 'Page {currentPage:n0} of {pageCount:n0}',

cv: view_wrmcpage

    });     

    var wrmcGrid = new wijmo.grid.FlexGrid('#wrmcGrid', {

showMarquee: true,

selectionMode: 'MultiRange',

autoGenerateColumns: false,

columns: [   


    { binding: 'wrmc', header: '코드', width: '*', format: '*' },

    // 정규 바운드 텍스트 버튼

    {

binding: 'machname',

header: '설비명', 

align:"center",

cellTemplate: wijmo.grid.cellmaker.CellMaker.makeButton({ 

    text: '<b>${item.machname}</b>',

    click: (e, ctx) => {

wrmcChk(ctx.item.wrmc, ctx.item.machname);

    }

})

    },


    { binding: 'wpernm', header: '작업자', width: '*', format: 'n1' } 


], 

itemsSource: view_wrmcpage

    });  


    function getData_wlist(){


var WrmcDto = [[${wrmcDto}]];  

var data02 = [];

var cnt = 1;

for (var i = 0; i < WrmcDto.length; i++) {

    data02.push({

id: i, 

index: cnt,

wrmc:WrmcDto[i]["wrmc"],

machname: WrmcDto[i]["machname"], 

wpernm: WrmcDto[i]["wpernm"]                                                    

    });

    cnt++;

}  

return data02                                          

    }   


onload 에 위와 같이 만들어봤습니다. cell안에 버튼이 나오도록 하고싶은데 실행을 해보면

아래와 같이 오류가 납니다. 


82217ffc3fe2bf37b37c5bcd67901648_1650366999_8096.PNG
 

헤더에는  Wijmo CDN JS 라이브러리 레퍼런싱 

을 추가했습니다. 

이유가 뭘까요. 

빠른답변 부탁합니다. 







  • 페이스북으로 공유
  • 트위터로  공유
  • 링크 복사
  • 카카오톡으로 보내기

댓글목록

등록된 댓글이 없습니다.

1 답변

PureJS Re: Cannot read properties of undefined (reading 'CellMaker')

추천0 이 글을 추천하셨습니다 비추천0

페이지 정보

작성자 GCK루시 작성일 2022-04-21 09:52 댓글 0건

본문

안녕하세요 그레이프시티입니다.


해당 이슈의 경우, cellmaker 라이브러리를 추가하지 않아 발생한 에러로 아래와 같이 wijmo.grid.cellmaker 라이브러리를 설정 및 불러오시면 되십니다.

<script src="https://cdn.grapecity.com/wijmo/5.20221.842/controls/wijmo.grid.cellmaker.min.js"></script>

 

다른 궁금한 점이 생기면, 문의 주시기 바랍니다. 


감사합니다. 

그레이프시티 드림 

댓글목록

등록된 댓글이 없습니다.

메시어스 홈페이지를 통해 제품에 대해서 더 자세히 알아 보세요!
홈페이지 바로가기
메시어스 홈페이지를 통해 제품에 대해서 더 자세히 알아 보세요!
홈페이지 바로가기
이메일 : sales-kor@mescius.com | 전화 : 1670-0583 | 경기도 과천시 과천대로 7길 33, 디테크타워 B동 1107호 메시어스(주) 대표자 : 허경명 | 사업자등록번호 : 123-84-00981 | 통신판매업신고번호 : 2013-경기안양-00331 ⓒ 2024 MESCIUS inc. All rights reserved.