Fill treeview from database parent child

Hi

This time I am completely lost.

I need to show data in the treeview using the same idea that you have with the blazor component, where it is very easy to do it because you have the IdMapping and ParentIdMapping properties

Can you help me with a similar example? 

Thanks in advance!


1 Reply 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team June 16, 2021 11:39 AM UTC

Hi jose, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “I need to show data in the treeview using the same idea that you have with the blazor component” from our side. We would like to inform you that, unlike blazor TreeView, the Xamarin.Forms SfTreeView is a templated control and you can provide data as the ItemsSource for the Xamarin TreeView. Also, we need to customize the items using the DataTemplate via binding. This is the SfTreeView architecture. 
 
Please refer to our user guidance document to populate data for SfTreeView, 
 
Please find the Xamarin.Forms Treeview GettingStarted sample, 
 
Also, could you please let us know if you want to populate data from SQL database? If yes, you can use SQLite database for Xamarin.Forms to achieve your requirement.  
 
Please refer to the following documentation to consume data from SQLite database, 
 
Please let us know if you need further assistance. 
 
Regards, 
Lakshmi Natarajan 


Marked as answer
Loader.
Up arrow icon