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

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


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

    VEG --
                    -- CARROTS
                    -- PUMPKINS

  2. Bobi
    Admin
    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":
    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.
  3. DevCraft banner
  4. 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.
  5. Kiril Stanoev
    Admin
    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