ฉันมีตารางแบบต้นไม้และมีสองคอลัมน์ Duration และคอลัมน์ช่องทำเครื่องหมาย สิ่งที่ฉันต้องการคือเมื่อฉันเลือก / ยกเลิกการเลือกช่องทำเครื่องหมาย ฉันควรได้รับค่าคอลัมน์ระยะเวลา นี่คือรหัสที่ฉันได้ลองแล้ว แต่ไม่รู้ว่าฉันจะเข้าถึงค่า Duration ได้อย่างไร
{
xtype: 'nacheckcolumn', //only display checkbox on leaf items(tasks)
header: 'N/A',
dataIndex: 'NA',
menuDisabled: true,
width: 60,
sortable: false,
editor: {
xtype: 'checkbox',
cls: 'x-grid-checkheader-editor'
},
listeners: {
'checkchange': function (column, recordIndex, checked) {
console.log(checked);
if(checked === true) {
}
}
}
}