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

Nested TileViews using binding and hierarichal data template

1 Answer 52 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Mo
Top achievements
Rank 1
Mo asked on 15 Jun 2010, 07:55 PM

 

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.
Thanks,

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Jun 2010, 05:27 PM
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 http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Greetings,
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
Tags
TileView
Asked by
Mo
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or