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

RadFluidContentControl - Databinding from Viewmodel

1 Answer 76 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 08 Nov 2015, 01:44 AM

Hi,

 I'm using RadTileView and RadFluidContentControl to display small, normal and large views. For some reason the default normal view is displaying correctly but other 2 views are not displayed. Please see below code:

 

<telerik:RadTileViewItem Header="​Test">

                        <telerik:RadFluidContentControl ContentChangeMode="Manual" 
                                                        State="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadTileViewItem}, Path=TileState, Converter={StaticResource FluidContentStateConverter}}">

                                   <telerik:RadFluidContentControl.SmallContent>
                              
                                    <TextBlock Text="{Binding Path=textvalue}" />
                            </telerik:RadFluidContentControl.SmallContent>

                           
                            <telerik:RadFluidContentControl.Content>

                                <TextBlock Text="{Binding Path=textvalue1}"  />
                            </telerik:RadFluidContentControl.Content>

                             <telerik:RadFluidContentControl.LargeContent>
                               
                                <TextBlock Text="{Binding Path=textvalue2}" />

                            </telerik:RadFluidContentControl.LargeContent>

                        </telerik:RadFluidContentControl>

                    </telerik:RadTileViewItem>

 textvalue, textvalue1 and textvalue2 values are assigned in the viewmodel and it is used in the namespace:

 <UserControl

 d:DataContext="{d:DesignInstance viewModels:TestViewModel}"​

... />

 

Could you help me why small and large contents are not displaying?

 

Thanks


1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 11 Nov 2015, 06:02 PM
Hello Jack,

I am afraid that without your implementation I cannot be sure what is causing the described behavior. However, based on your code, I prepared a sample project demonstrating the desired effect. Please give it a try and let me know if I am missing something.

Regards,
Martin
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
TileView
Asked by
Jack
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or