Binding to a 'Flat' file

4 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 14 Dec 2009 Link to this post

    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

    VEG         CARROTS
    VEG         PUMPKIN

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

    VEG --
                    -- CARROTS
                    -- PUMPKINS

  2. Bobi
    Bobi avatar
    513 posts

    Posted 17 Dec 2009 Link to this post

    Hi Jon The Nerd,

    Please take a look at the following section in our online help :"Populating with Data":

    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 :

    I hope that this will help you.

    Kind regards,
    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.
  3. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 19 May 2011 Link to this post

    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.
  4. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 25 May 2011 Link to this post

    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
Back to Top