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

Binding to a 'Flat' file

3 Answers 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 14 Dec 2009, 05:11 PM
Hi.. I have a large 'flat' file like this... I need to create a tree with the appropriate hierarchy... How can I accomplish this in the best way.
I can group on FRUITS and VEG ... but what's the best way to build' the child nodes ?    thanks in advance

FRUITS    APPLE
FRUITS    PEAR
FRUITS    ORANGES
FRUITS    LEMONS
VEG         CARROTS
VEG         PUMPKIN


FRUITS ---
                ---- APPLE
                ---  PEAR
                ---  ORANGES

VEG --
                -- CARROTS
                -- PUMPKINS

3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 17 Dec 2009, 08:47 AM
Hi Jon The Nerd,

Please take a look at the following section in our online help :"Populating with Data":
http://www.telerik.com/help/silverlight/radtreeview-populating-with-data-databinding-overview.html

Here you can find how to populate a RadTreeView using different binding strategy.
It seems like a good derision would be to choose Binding to XML.
Here is another example of how to use HierarchicalTemplate :
http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate

I hope that this will help you.

Kind regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mark
Top achievements
Rank 1
answered on 19 May 2011, 11:09 PM
FWIW - I would have loved a sample for this question. 
This is a very common SQL view result set that would be a great example to see in a treeview properly.
0
Kiril Stanoev
Telerik team
answered on 25 May 2011, 08:19 AM
Hello Jon,

Please take a look at this blog post bellow and let me know if it helps.

Populating Silverlight TreeView from WCF Service with LINQ to SQL

Best wishes,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Jon
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Mark
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or