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

TileView behaviour question

1 Answer 71 Views
TileView
This is a migrated thread and some comments may be shown as answers.
uku
Top achievements
Rank 1
uku asked on 13 Nov 2009, 12:41 PM
Hello,

I've copied the TileView example from the Telerik example project (Q3 release) and added several TileViewItems.
Then I've inserted several controls into the LargeContent and was wondering because when I enlarge the tile it was always empty. After playing around with SmallContent, Content and LargeContent which I thought represents the three different styles of the tile, I made the following observation.

It looks to me that the control decides depending on the space it has(that means size of the RadViewTile in relation to the size of the single content container), which content section is shown. That means if I have a lot of tiles than the "SmallContent"  section is shown and if I have only a few tiles than the "Content"  section is shown.

My thinking was that I have three states.
State-1
A "SmallContent" - state which is when one tile is enlarged and all the others are listed on the right side. They, I've thought use the "SmallContent"
State-2
The "Content" - state when no tile is enlarged and all tiles have the same size.
State-3
The "LargeContent" - state, when one tile uses nearly the whole space

I've attached 4 pictures to make it more clear. In picture 2 you can see, that one tile uses nearly the whole screen but "Content" is shown and not "LargeContent". In this case the width of the RadTileView definition was not big enough.

Is this the intended behaviour? I'm thinking about creating tiles dynamically and having dynamic size of the RadTileView, so I have to analyze myself where to put my content. In the case of picture 2 the content of "LargeContent" was never shown.

It would be nice if someone could explain me the idea behind this behaviour

Thanks

Uwe

1 Answer, 1 is accepted

Sort by
0
Accepted
Tihomir Petkov
Telerik team
answered on 17 Nov 2009, 08:22 AM
Hi Uwe,

In fact, what you observed is correct. However, there is a detail that I believe may not be obvious. That detail is the FluidContentControl. It is a standalone control that can be used without a TileView and there is no requirement to use one within the other. Using the two is simply very handy and that is why the online demo does so. Now I see that this can actually be a bit misleading by leaving people with the impression that the FluidContentControl is a part of the TileView or is somehow required by it.

Anyway, when a TileViewItem is changing its state, it is only changing its size i.e. the TileViewItem is not doing anything with its content. It is the FluidContentControl that is switching its visible content as the available size changes. You can find a good explanation of the FluidContentControl here:
http://www.telerik.com/community/forums/silverlight/tileview/radtileview.aspx#987640

Hopefully I was able to make things a bit clearer. Please let me know if you have any other questions.

Kind regards,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TileView
Asked by
uku
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or