BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
The Problem that I am having can be described as under:
- After submitting a form with TreeView (which has both parent and child nodes), I am getting am getting a URL in the nav bar. Initially that browser is having cached Treeview data, so its showing the checked nodes in treeview form and loading next pages in pagination properly.
- When I share that url to a friend, the filter is only working for her on the first page. But, the form does not load checked nodes from the url, so when she tries to go on next page the filter disappears.
Approaches I tried:
- I tried add javascript to load checked nodes into the tree view from, but that's only working for parent nodes, not child nodes.
Is there a built-in solution to this?
I am using 20.2.36 version of ej2 library.
Hi Darsh,
Greetings from Syncfusion support.
We have checked your reported query in the JS TreeView component using your shared details. We understand that you are facing some issues with the TreeView component inside the form control at your end, based on the shared details. However, we would like to inform you that the TreeView component is not a form control component. Therefore, we were quite unclear about your exact requirements. Are you using the Dropdown Tree component at your end, which has the enablePersistence property? This property enables or disables persisting the component's state between page reloads.
For your reference, we have attached the Dropdown Tree component demo and documentation.
Demo: https://ej2.syncfusion.com/javascript/demos/#/material3/drop-down-tree/default.html
Documentation: https://ej2.syncfusion.com/javascript/documentation/drop-down-tree/es5-getting-started
Also, please share your exact requirements and specify which component you are using at your end. If possible, share the issue-replicated sample or code snippet details that will help us easily check the issue. Could you please provide the requested details? Based on that, we will investigate and provide you with a prompt solution. Kindly get back to us with the requested details.
Regards,
Prasanth Madhaiyan.
You can consider manually serializing and deserializing the checked nodes information in the URL or try to update to a newer version of the ej2 library, as it may have bug fixes or features related to this issue.
Hi Steve,
Appreciate the suggestion.
Regards,
Shereen
Hi Steve & Shereen ,
I did that and it worked, loaded checkedNodes and expandedNodes from URL into tree view. Enable persistence relies on local-storage cache, and was not optimal for the functionality that I needed.
Thank you! :)