This is a migrated thread and some comments may be shown as answers.

radTreeview and ObjectDataSource

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 03 Feb 2009, 02:09 PM
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



1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 05 Feb 2009, 09:11 AM
Hi Nick,

Unfortunately such table structure is not supported. What we support is self referencing tables. You can check this online example for additional info.

Sincerely yours,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Nick
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or