Hello,
i am using the latest version of syncfusion blazor 19.4.0.38.
I am using the treeview as a navigation for a catalogue.
In the OnInitializeAsync event i load the first level of the treeview and in the onexpand event i load the children of the expanded node.
To let my customer deep link to a specific topic in the catalogue i change the uri using the navigationmanager.
The url looks like https://server/Europe/Germany/Bavaria/Munich
In the OnInitializeAsync i parse the uri and split the path to my catalogue nodes. In the above case i read the node "Europe" from the database and add it to the datasource of the treeview and so on.
After reading the last item in the path, in this case "Munich" i want to select this node and want to fire the OnNodeSelect event. The node is getting selected but the OnNodeSelect event is not getting fired.
Is this the correct way to load data and iterate throu the path of the uri to load nodes and select a node ?
Thanks
Ulrich
Hello Indhumathy ,
thank you for your post.
I have tested the behaviour with your source code and it does not work.
I have slightly modified the sourcecode you are using.
- Added a selected property to FileData
- Setting the Selected of the 2nd record in the onintialized event to true.
After run the 2nd entry in the treeview is highlieghted as selected but the event is not getting triggered.
Find attached the file i have modified.
Thanks for your help
Ulrich
Hello,
after parsing the URI i want to select the node and run the code in the onnodeselect procedure.
I have split the code and it works as expected.
Thanks
Ulrich