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