Example no longer works

After upgrading to 18.3, the TreeView example no longer works

https://blazor.syncfusion.com/documentation/treeview/how-to/process-the-tree-node-operations-using-context-menu/

3 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team October 12, 2020 08:02 AM UTC

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 


Marked as answer

FE Felipe October 12, 2020 09:52 AM UTC

Thank you, now it works


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team October 12, 2020 11:24 AM UTC

Hi Felipe, 
 
We are happy to hear that your reported problem resolved. Please, let us know if you need any further assistance. 
 
We will be happy to assist you. 
 
Regards, 
Shameer Ali Baig S. 


Loader.
Up arrow icon