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

Binding to DomainDataSource (RIA) and display coverflow .....

6 Answers 93 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kamal Mostofi
Top achievements
Rank 1
Kamal Mostofi asked on 11 Jul 2010, 06:25 PM
Hi,
I have a database that I am binding my data to the controls using  DomainDataSource (RIA). I would like to use Tileview to display the top level items and then display child item as coverflow inside the content of tileview.
Can you give me an example of how I can bind data using DomianDataSource (RIA) to TileView control please?

I do appreciate your help in advance.

Best regards,
Kamal 

6 Answers, 1 is accepted

Sort by
0
Kamal Mostofi
Top achievements
Rank 1
answered on 12 Jul 2010, 11:28 PM
Hi,

I was able to do the following code. I can see the tiles but it doesn't display any data.

'<

 

 

Riacontrols:DomainDataSource x:Name="mysup" QueryName="GetAnjSuppliers" AutoLoad="True" Margin="0,0,640,39">

 

 

 

<Riacontrols:DomainDataSource.DomainContext>

 

 

 

<ds:SupplierServices />

 

 

 

</Riacontrols:DomainDataSource.DomainContext>

 

 

 

</Riacontrols:DomainDataSource>

 

 

 

<telerikNavigation:RadTileView x:Name="tileView1" ItemsSource="mysup" Grid.Row="1">

 

 

 

<telerikNavigation:RadTileView.ItemTemplate>

 

 

 

<DataTemplate>

 

 

 

<TextBlock Text="{Binding Supplier}" />

 

 

 

</DataTemplate>

 

 

 

</telerikNavigation:RadTileView.ItemTemplate>

 

 

 

<telerikNavigation:RadTileView.ContentTemplate>

 

 

 

<DataTemplate>

 

 

 

<telerik:RadFluidContentControl ContentChangeMode="Manual" State="Normal">

 

 

 

<!-- Play with SmallContent, Content and LargeContent to get the best appearance -->

 

 

 

<telerik:RadFluidContentControl.SmallContent>

 

 

 

<TextBlock Text="{Binding Supplier}" />

 

 

 

</telerik:RadFluidContentControl.SmallContent>

 

 

 

<telerik:RadFluidContentControl.Content>

 

 

 

<telerikNavigation:RadCoverFlow ItemsSource="{Binding Covers}">

 

 

 

<telerikNavigation:RadCoverFlow.ItemTemplate>

 

 

 

<DataTemplate>

 

 

 

<TextBlock Text="{Binding Supplier}"></TextBlock>

 

 

 

</DataTemplate>

 

 

 

</telerikNavigation:RadCoverFlow.ItemTemplate>

 

 

 

</telerikNavigation:RadCoverFlow>

 

 

 

</telerik:RadFluidContentControl.Content>

 

 

 

<telerik:RadFluidContentControl.LargeContent>

 

 

 

<Rectangle Margin="11" Fill="Red"/>

 

 

 

</telerik:RadFluidContentControl.LargeContent>

 

 

 

</telerik:RadFluidContentControl>

 

 

 

</DataTemplate>

 

 

 

</telerikNavigation:RadTileView.ContentTemplate>

 

 

 

</telerikNavigation:RadTileView> '

 

 

 

I know I have 80 records in my data and would like to display as TileView. Any suggestions?

I do appreciate your help in advance.
Many thanks,
Kamal

0
Tina Stancheva
Telerik team
answered on 14 Jul 2010, 03:14 PM
Hello Kamal Mostofi,

I attached a sample project illustrating how to populate the TileView using RiaServices. In the project is used the Northwind database Customer and Order tables. Also, the TileView ItemsSource collection contains only the customers from City="London".

Please take a look at the project and let me know if it works for you or if you need more info.

All the best,
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
0
mike okon
Top achievements
Rank 1
answered on 18 Jan 2013, 10:52 AM
Hi Tina

This looks like a fabulous example however any chance this can be updated to use the northwind sql2012 database. The project will not run as I don't have sql2008 on my machine.

mike
0
Tina Stancheva
Telerik team
answered on 23 Jan 2013, 12:59 PM
Hello Mike,

I attached an updated version of the solution built against MS VisualStudio 2012 and SQL 2012.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Diwa
Top achievements
Rank 1
answered on 05 May 2013, 04:32 AM
Hi
I am running out of similar problem. I would like to bind common members from both customer & order and bind to a cover flow control instead of tile view .Can you pl help me out?

Thanks,
Diwakaran.
0
Tina Stancheva
Telerik team
answered on 09 May 2013, 08:15 AM
Hello Diwakaran,

We posted a reply in the support thread you started regarding the RadCoverFlow control. As the RadCoverflow control inherits ListBox control, you shouldn't have any issues populating it with business items through its ItemsSource collection. However, it's best to keep the communication in the support thread (ticket ID 688961), where you can attach a sample and further elaborate on your issues.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TileView
Asked by
Kamal Mostofi
Top achievements
Rank 1
Answers by
Kamal Mostofi
Top achievements
Rank 1
Tina Stancheva
Telerik team
mike okon
Top achievements
Rank 1
Diwa
Top achievements
Rank 1
Share this question
or