Hey guys... I'm not a really good .net guy so a lot of these basics elude me.
I just want to fill an UltraWebTree with hierch data from a DB. I'm using a middle tier data class to pull data in so I suppose I have to fill the tree by hand in the .vb, right...
I can't seem to find any code that really shows me how to do this... the code I'm seeing on the site all has so much extra stuff in it and is using a different type of data source than I am so it's hard for me to know which parts would belong to me.
Can someone how me how i would just fill a tree with data coming from a data class or show me a better way to do it...
the table looks like this:
create table TopLevel
(
ID identity(1, 1),
ParentID int,
LevelNae varchar(100)
)
So it's pretty easy really. I'm just not a .net guy so these easy things get past me.
Thanks
It's better in that case to use WebHierarchcalDataSource of Infragistics to get the data. Then there is property of the WebDataTree called DataSourceID and just databind WebHierarchvalDataSource to WebDataTree. You can find usefull samples with code in our samples browser:
https://www.infragistics.com/samples/aspnet/hierarchical-data-grid/overview
Navigate to WebHierarchcalDataSource -> Binding to UltraWebTree
Good luck
The example uses Access DataSource, which I cannot in my case.
I have the data in a single dataset, I've attached a screenshot of the table. It's flat and the key is on 'EVENT_ID,LOGICAL_NAME,LOGICAL_PARENT_NAME'
What is the best way for me to use this in memory dataset and create self reference and display the names of servers in a hierarchical tree structure?
Thanks,
Also, there could be any number of child levels to a parent, and that child can have many levels of children and so on.