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

RadFluidContentControl NOT bound

2 Answers 51 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Cuthahotha
Top achievements
Rank 1
Cuthahotha asked on 18 Dec 2010, 06:21 PM
I'd like to have 4 predefined tiles in the tile view.  Each of them contains a different UI. Each UI with three different display modes.  Small, medium, large. (ie not a data bound tile).  That much I have so far.

I'd like to use the RadFluidContentControl but all the samples are developed around a data bound tiles, or at least adding tiles dynamically.  I think i have this figured out, but ran into a small problem.

I have a grid in a largecontent (fluid content control) in one of the tile view items.  But the code that fills in the grid with data, can't "see" the grid control.  I assume this is because the fluid content control decides on load if the content that has the grid is actually shown.  If so, any suggestions on getting the grid control would be great.  If not the case, any suggestions on my issue would be great.

Suggestions?

thanks,
Steve

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Dec 2010, 05:19 PM
Hi Cuthahotha,

If the RadTileViewItems Content is set as a RadFluidContentControl, then you can access this RadFluidContentControl through the Content property of the items. Once you get the FluidContentControl, you can use the LargeContent, Content and SmallContent properties to access each if its contents.
So you can get the LargeContent of a FluidContentControl like so:
RadFluidContentControl fluidContent = tile.Content as RadFluidContentControl;
Grid grid = fluidContent.LargeContent as Grid;
where tile is a TileViewItem which Content is a FluidContentControl. Is this what you need or am I missing something? If your scenario is different, please elaborate a bit more on it or send us a code snippet illustrating it and we will provide you with a better suited solution.

Kind regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Cuthahotha
Top achievements
Rank 1
answered on 22 Dec 2010, 07:30 PM
Tina,

Thank you for addressing this.  It looks like exactly what I need.  I'll dig in and check in the next couple of days.

THANKS!
Steve
Tags
TileView
Asked by
Cuthahotha
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Cuthahotha
Top achievements
Rank 1
Share this question
or