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

Option for different headers?

3 Answers 65 Views
TileView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Feb 2010, 11:44 PM
Is there an option/way to display different headers based on the current expanded state of the window similar to what is currently done with the content? If not, this would be a great feature to add.

Thanks,
Shawn

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 05 Feb 2010, 09:47 AM
Hello Shawn,

You can use a FluidContentControl for the headers as well as the content - no problem about that. Simply put a FluidContentControl in the header of each tile and set the proper thresholds (or, alternatively, change the visible content manually when the tile state changes).

Kind regards,
Tihomir Petkov
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
David
Top achievements
Rank 1
answered on 08 Feb 2010, 03:22 AM
I've tried doing what you described in several different ways but no matter what combination I did, the header content would never change. It was almost as if the RadFluidContentControl was looking for the header's size to change instead of the RadTileViewItem and therefore would never trigger.

I was able to find a workaround for my problem by setting the header's RadFluidContentControl to Manual and binding the State to that of the primary content.

Was there another/better way to do this?

Thanks,
Shawn

<telerik:RadTileView MinimizedColumnWidth="150"
            <telerik:RadTileViewItem> 
            <telerik:RadTileViewItem.Header> 
                <telerik:RadFluidContentControl ContentChangeMode="Manual" State="{Binding ElementName=PrimaryControl, Path=State}"
                    <telerik:RadFluidContentControl.SmallContent> 
                        <Label Content="Small Content"/> 
                    </telerik:RadFluidContentControl.SmallContent> 
                    <telerik:RadFluidContentControl.Content> 
                        <Label Content="Medium Content"/> 
                    </telerik:RadFluidContentControl.Content> 
                    <telerik:RadFluidContentControl.LargeContent> 
                        <Label Content="Large Content"/> 
                    </telerik:RadFluidContentControl.LargeContent> 
                </telerik:RadFluidContentControl> 
            </telerik:RadTileViewItem.Header> 
            <telerik:RadFluidContentControl x:Name="PrimaryControl"
                    <telerik:RadFluidContentControl.SmallContent> 
                        <Label Content="Small Content"/> 
                    </telerik:RadFluidContentControl.SmallContent> 
                    <telerik:RadFluidContentControl.Content> 
                        <Label Content="Medium Content"/> 
                    </telerik:RadFluidContentControl.Content> 
                    <telerik:RadFluidContentControl.LargeContent> 
                        <Label Content="Large Content"/> 
                    </telerik:RadFluidContentControl.LargeContent> 
                    </telerik:RadFluidContentControl> 
                </telerik:RadTileViewItem>
....

0
Tihomir Petkov
Telerik team
answered on 10 Feb 2010, 03:23 PM
Hello Shawn,

The problem with the code snippet you sent is that you haven't set proper thresholds that would determine when the visible content of the FluidContentControl that is in the Content property of your TileViewItem (PrimaryControl) should be changed. If you set proper thresholds (this would be determined by the exact dimensions of your application) everything should be ok.

Let me know how it goes.

Sincerely yours,
Tihomir Petkov
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
TileView
Asked by
David
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
David
Top achievements
Rank 1
Share this question
or