axisj icon indicating copy to clipboard operation
axisj copied to clipboard

Grid inline-edit checkbox 기능 질문

Open kingwhale opened this issue 9 years ago • 1 comments

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";
        }
    }
},

kingwhale avatar Oct 19 '16 00:10 kingwhale

formatter:"checkbox" 를 선언하는걸로 이미 체크박스의 기능을 수행중 인데.. 다시 에디터를 사용 하셔야 할 이유가 있나요?

lhslive avatar Oct 21 '16 06:10 lhslive