Completed
Last Updated: 02 Mar 2018 08:14 by Patrick
ADMIN
Telerik Admin
Created on: 21 Mar 2012 17:56
Category: TileView
Type: Bug Report
6
TileView: FluidContentControl - The DataContext is not distributed to Large and Small contents in some cases
The DataContext is not distribute to Large and Small contents in some cases.

Possible workarouns:
1) Declare the DataContext of TileView in xaml, for example:
   <Window.DataContext>
        <local:MainViewModel />
    </Window.DataContext>

2) Assing DataContext Binding to the three contents:
  <telerik:RadFluidContentControl.LargeContent>
                <Grid DataContext="

 <telerik:RadFluidContentControl.Content>
                <TextBox FontSize="16" DataContext="{Binding}"

            <telerik:RadFluidContentControl.SmallContent>
				<TextBlock FontSize="12" DataContext="{Binding}"
3 comments
Patrick
Posted on: 16 May 2016 18:17
Doing this gave the expected behavior:

<DataTemplate x:Key="contentTemplate">
            <telerik:RadFluidContentControl Content="{Binding}" LargeContent="{Binding}" SmallContent="{Binding}" />
</DataTemplate>
Patrick
Posted on: 09 May 2016 19:47
Any news here? This seems to be an issue in Silverlight as well. When using a RadFluidContentControl the Large/SmallContentTemplates do not allow the use of bindings within the DataTemplate assigned because the DataContext is not inherited from the fluid content control. Setting the Large/SmallContent directly is far less than ideal, and in our situation manually forcing the inherritance with DataContext="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadFluidContentControl, Mode=FindAncestor}, Path=DataContext}" isn't an option either. Please advise.
Tarun
Posted on: 10 May 2013 05:03
This is a massive blocker for our customer. What are the timelines for the fix?