Hi Felipe,
Greetings from Syncfusion support.
We have checked your reported problem with TreeView component. In our latest version, we have included some tag changes in ContextMenu component. Refer the below link for release notes.
To resolve your issue, you need to specify the events in ContextMenu’s in MenuEvents tag. Refer the below code snippet.
<SfTreeView TValue="EmployeeData" @ref="tree" AllowDragAndDrop="true" SelectedNodes="@selectedNodes.ToArray()" >
<TreeViewFieldsSettings Id="Id" ParentID="Pid" DataSource="@ListData" Text="Name" HasChildren="HasChild"></TreeViewFieldsSettings>
<TreeViewEvents TValue="EmployeeData" NodeSelected="OnSelect" NodeClicked="nodeClicked"></TreeViewEvents>
<SfContextMenu TValue="MenuItem" @ref="menu" Target="#treeview" Items="@MenuItems">
<MenuEvents TValue="MenuItem" ItemSelected="MenuSelect"></MenuEvents>
</SfContextMenu>
</SfTreeView> |
Please, download the sample from the following link.
We will update our documentation and published it in online documentation site
Refer the below link to know more about the TreeView component.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P