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

radTreeview and ObjectDataSource

1 Answer 57 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Nick asked on 03 Feb 2009, 02:09 PM

Pretty simple question here, I guess. But somehow I just couldn't figure it out. I tried to follow the instructions in this turotial: 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.

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?


1 Answer, 1 is accepted

Sort by
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,
the Telerik team

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