I have the list of previously selected data. so how can I set the checkbox in the tree?
My category items format as follows -
const category = new TreeviewItem({
text: item.data.value,
value: item.data.value,
collapsed: true,
checked: false,
children: [{ text: item.data.value, value: {}, checked: false, disabled: true},
{ text: d.data.value, value: { 'categoryType': d.data.categoryType,
'categoryName': d.data.categoryName }, checked: false }]
});
I have the list of previously selected data. so how can I set the checkbox in the tree? My category items format as follows - const category = new TreeviewItem({ text: item.data.value, value: item.data.value, collapsed: true, checked: false, children: [{ text: item.data.value, value: {}, checked: false, disabled: true}, { text: d.data.value, value: { 'categoryType': d.data.categoryType, 'categoryName': d.data.categoryName }, checked: false }] });