axisj
axisj copied to clipboard
Grid inline-edit checkbox 기능 질문
Grid inline-edit checkbox 기능 질문드립니다.
inline으로 체크박스를 사용하여 데이터를 수정하고 싶은데 checked 기능을 쓰면 DB에서 읽어온 y, n 데이터로 체크 처리가 가능한데 거기에 editor 기능을 같이 사용하면 checked 기능이 안되서 질문드립니다.
{ key: "pRead", label: "조회", width : "50", align: "center",
formatter:"checkbox", formatterLabel:"조회" ,
checked:function(){
return this.item.pRead == 'y' || this.item.___checked && this.item.___checked["3"];
},
editor: {
type: "checkbox",
beforeUpdate: function (val) {
userGrid.checkedColSeq(0, true, this.index);
return (val == true) ? "y" : "n";
}
}
},
formatter:"checkbox" 를 선언하는걸로 이미 체크박스의 기능을 수행중 인데.. 다시 에디터를 사용 하셔야 할 이유가 있나요?