Hi,
I am converting asp.net webform to asp.net core and react.js. Currently, webpage displays data in the tree format using tree.xml, tree.xsl and tree.js. I am new to react.js. Please help me in generating treeview in react.js from using .xml, .xsl and .javascript files attached in the zip.
.aspx code
Tree looks like the below picture
Sales
Item1
SubItem1
ITEM2
SubItem2
Item3
SubItem3
Supervisor
Item1
SubItem1
Item2
SubItem2
Item3
SubItem3
Thanks
Vaibhav ChauhanPosted Sep 9, 2021, 2:40 PM
saradalalPosted Sep 9, 2021, 1:50 PM
Vaibhav ChauhanPosted Sep 9, 2021, 6:44 AM
You can use react-sortable-tree npm package create tree view. You just need to install the package,arrange your data in required format and pass that data in SortableTree component.
https://www.npmjs.com/package/react-sortable-tree