Checking CheckBox inside TreeView is not working.
This is the code. Treeview with CheckBox nodes inside expansion panel.
<ExpansionPanel
className='item-body-dropDownList'
title={"Expension panel"}
expanded={expanded === item.id}
tabIndex={0}
key={item.id}
onAction={(event) => {
setExpanded(event.expanded ? "" : item.id);
}}
>
<Reveal>
{expanded === item.id && (
<ExpansionPanelContent>
<TreeView
data={processTreeViewItems(tree, {
check: check,
})}
checkboxes={true}
onCheckChange={onCheckChange}
/>
</ExpansionPanelContent>
)}
</Reveal>
</ExpansionPanel>
Tree data
const tree = [
{
text: "Item1",
},
{
text: "Item2",
},
];
I tried to implement TreeView from this web cite https://www.telerik.com/kendo-react-ui/components/treeview/checkboxes/ but its not working.
Any help please?
Aucun commentaire:
Enregistrer un commentaire