Hi,
Pretty simple question here, I guess. But somehow I just couldn't figure it out. I tried to follow the instructions in this turotial: http://www.telerik.com/help/aspnet/treeview/tree_usedatabindings.html. But the structure of my table is a bit diferent. (see next link)
I have an ObjectDatasource, which uses an WebService. When I insert a simple ASP Gridview, I get the folowing table.
http://img156.imageshack.us/img156/1176/afbeelding3wh3.png
So the structure is (for example)
Caseno 1 - Level1no A
Caseno 1 - Level1no B
Caseno 2 - Level1no A
Caseno 2 - Level1no C
Caseno 2 - Level1no D
Caseno 3 - Level1no E
What I want, is too have a treeview with al the unique caseno's as parent Nodes and the Level1No's as child nodes.
Like this:
Caseno 1
-Level1no A
-Level1no B
Caseno 2
-Level1no A
-Level1no C
-Level1no D
Caseno 3
-Level1no E
Is that possible with this structure? I tried to fill the DatafieldID with ID, and the DatafieldParentID with Caseno, but this seems to go wrong (treeview not visisble at all).
Any ideas?
Thanks,
Nick
Pretty simple question here, I guess. But somehow I just couldn't figure it out. I tried to follow the instructions in this turotial: http://www.telerik.com/help/aspnet/treeview/tree_usedatabindings.html. But the structure of my table is a bit diferent. (see next link)
I have an ObjectDatasource, which uses an WebService. When I insert a simple ASP Gridview, I get the folowing table.
http://img156.imageshack.us/img156/1176/afbeelding3wh3.png
So the structure is (for example)
Caseno 1 - Level1no A
Caseno 1 - Level1no B
Caseno 2 - Level1no A
Caseno 2 - Level1no C
Caseno 2 - Level1no D
Caseno 3 - Level1no E
What I want, is too have a treeview with al the unique caseno's as parent Nodes and the Level1No's as child nodes.
Like this:
Caseno 1
-Level1no A
-Level1no B
Caseno 2
-Level1no A
-Level1no C
-Level1no D
Caseno 3
-Level1no E
Is that possible with this structure? I tried to fill the DatafieldID with ID, and the DatafieldParentID with Caseno, but this seems to go wrong (treeview not visisble at all).
Any ideas?
Thanks,
Nick