I am developing an ASP.NET Web Application, in which I am accessing an SQL database to retrieve information from a table.
The information accessed from SQL (one single table) is stored in an entity framework. Each item in the framework contains ID, ParentID and name.
In my application so far, I can print every item in the entity framework and its information (using a for loop).
I would like to generate a TreeView using Telerik to display each item, and its respective children items (we can figure that out from ParentID). I had a look at demos but none seemed to apply to my case, as the data that is contained in the entity framework is dynamic (it will not always be the same, sometimes they will be more or less levels in the tree,etc), so we cannot hard code the tree elements.
Does anyone know if this can be done?