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

Parent/Child

0 Answers 43 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Cheri
Top achievements
Rank 1
Cheri asked on 03 Oct 2012, 05:58 PM

I have a CoverFlow displaying items from a database via a domain data source.  Within the CoverFlow's Item Template, I want to display additional (statistical) information from another domain data source with the Cover Flow's selected item as the parent.  

How do I do this?

<telerik:RadCoverFlow Name="rcf" ItemsSource="{Binding ElementName=ddsTiles, Path=DataView}" VerticalAlignment="Top"  OffsetY="50"
         DistanceBetweenItems="90" DistanceFromSelectedItem="10" ReflectionHeight="0.15" RotationY="42" Height="350" FlowDirection="LeftToRight"
                      >
    <telerik:RadCoverFlow.ItemTemplate>
        <DataTemplate>
            <telerik:HeaderedContentControl  Margin="5" Header="{Binding TileCaption}" Template="{StaticResource ListTemplate}"  >
                <Border BorderThickness="1"  Margin="5 5 5 5"  BorderBrush="#FFCBD8E8" CornerRadius="2">
                    <Grid  Name="grd">
                        <Grid.RowDefinitions>
                            <RowDefinition ></RowDefinition>
                            <RowDefinition ></RowDefinition>
                            <RowDefinition ></RowDefinition>
                        </Grid.RowDefinitions>
 
                        <TextBlock Name="Stats" Height="67" Margin="19,0,17,-2" VerticalAlignment="Bottom" Text="{Binding Path=Data.Qty, ElementName=ddsStats}"
                                    TextWrapping="Wrap" FontSize="11" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" >
                                    <TextBlock.RenderTransform>
                                        <CompositeTransform/>
                                    </TextBlock.RenderTransform>
                        </TextBlock>
 

                 </Grid>
            </Border>
            </telerik:HeaderedContentControl>
        </DataTemplate>
       </telerik:RadCoverFlow.ItemTemplate>
     
        <telerik:RadCoverFlow.EasingFunction>
            <CubicEase EasingMode="EaseOut"/>  
        </telerik:RadCoverFlow.EasingFunction>
    </telerik:RadCoverFlow>


And my Domain Data Sources:

<telerik:RadDomainDataSource Name="ddsTiles" QueryName="GetTiles" AutoLoad="True">
    <telerik:RadDomainDataSource.DomainContext>
        <server:IRISDomainContext />
    </telerik:RadDomainDataSource.DomainContext>
</telerik:RadDomainDataSource>
 
<telerik:RadDomainDataSource Name="ddsStats" QueryName="GetTileStatistics" AutoLoad="True" LoadingData="ddsStats_LoadingData">
    <telerik:RadDomainDataSource.DomainContext>
        <server:IRISDomainContext />
    </telerik:RadDomainDataSource.DomainContext>
    <telerik:RadDomainDataSource.QueryParameters>
        <telerik:QueryParameter ParameterName="id" Value="{Binding Path=Data.TileCaption, ElementName=ddsTiles}" />
    </telerik:RadDomainDataSource.QueryParameters>
</telerik:RadDomainDataSource>


Many thanks,
Cheri


No answers yet. Maybe you can help?

Tags
CoverFlow
Asked by
Cheri
Top achievements
Rank 1
Share this question
or