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

7 posts, 0 answers
  1. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 11 Jul 2010 Link to this post

    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 
  2. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 12 Jul 2010 Link to this post

    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

  3. DevCraft banner
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 Jul 2010 Link to this post

    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
  5. mike okon
    mike okon avatar
    40 posts
    Member since:
    Dec 2009

    Posted 18 Jan 2013 Link to this post

    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
  6. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Jan 2013 Link to this post

    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.

  7. Diwa
    Diwa avatar
    2 posts
    Member since:
    Apr 2013

    Posted 04 May 2013 Link to this post

    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.
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 May 2013 Link to this post

    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.

Back to Top
DevCraft banner