I am trying to populate a Treeview with data from a Vuex store without success. Does anyone have some sample code on how to do this? Ive tried dispatching an action in the beforeMount() function to populate the vuex store and then using a computed variable populate the Treeview, but it doesnt seem work even though the Treeview control has the fields.datasource variable populated with my data.
Any sample code on how to do this would be greatly appreciated.
MRMohan Ravi Syncfusion Team August 12, 2019 05:37 AM
From analyzing your query and as you said Treeview datasource is filled with store data. I think the problem here might be in field property mapping. Treeview fields id, text child and other properties should be also mapped correctly.
I have prepared a sample to populate Treeview using Vuex.