0
내 검도 UI 그리드 중 하나에 대해 특정 열에 대해 headerTemplate을 지정했습니다. 그러나 템플릿에 바인딩 컨텍스트가없는 것 같습니다.녹아웃 - 검도 헤더 템플릿 바인딩 컨텍스트
<span data-bind='text: ko.toJSON($data)'></span>
을 템플릿에 연결했지만 아무 것도 렌더링되지 않았습니다.
그리드는
self.gridConfig = {
data: self.Transactions,
height: 350,
pageable: {
pageSize: 5
},
useKOTemplates: true,
rowTemplate: "exportRowTemplate",
columns: [{
title: "Policy Number",
width: 120
}, {
title: "Insured Name",
width: 250
}, {
title: "Effective Date",
width: 120,
format: "{0:MM/dd/yyyy}"
}, {
title: "Transaction Type",
width: 150
}, {
title: "Premium",
format: "{0:c2}",
width: 120
}, {
headerTemplate: "<strong>Select</strong><span style='margin-left: 10px'><input type='checkbox' data-bind='checked: checkAllValue' /></span><span data-bind='text: ko.toJSON($data)'></span>"
}]
};
가 어떻게이는 HeaderTemplate에있는 컨트롤을 바인딩 할 사용하여 뷰 모델로 구성되어있다?