Nested TileViews using binding and hierarichal data template

2 posts, 0 answers
  1. Mo
    Mo avatar
    3 posts
    Member since:
    Jun 2010

    Posted 15 Jun 2010 Link to this post


    I am trying to create a TIleView in a WPF form that is bound to an observable collection. Everything seems to be working but my issue is that I want to have a nested tileview in the parent's large content template. This child tileview should display a collection that is a property in the parent item.
    An example is this

    I have Customers Collection. Each customer has orders collection.

    Whats needed:
    Display customers in tileview. When double clicking a customer tileviewitem, display orders in another tileview inside the item's large content using the orders collection that belongs to that customer.

    I have tried using HierarichalDataTemplates but the result was not satisfactory. Is there a way to do this?
    I am using Linq to Entities and just setting the ItemsSource of the child tileview to the child collection actually makes a call to the database to get the children using the id of the parent item that is bound to the TileViewItem that was maximized. I actually want to use the orders that exists in the Customer object instead since they are filtered instead of making the call to the database.
    Any help would be appreciated.
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 18 Jun 2010 Link to this post

    Hi Mo,

    I am not sure if I understand your scenario correctly. However, I prepared a sample project illustrating how to create a hierarchical TileView and populate it using LINQ to SQL.

    Please take a look at it and let me know if this is what you had in mind or if you need more info.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverilght applications. For more information, please visit

    Tina Stancheva
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top