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

Adding List of grids in RadFluidContentControl.LargeContent not working

1 Answer 106 Views
TileView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vidya
Top achievements
Rank 1
Vidya asked on 19 Mar 2012, 10:46 PM
Hi,
I am trying to Generate RadTileViewItem dynamically. It contains RadFluidContentControl which has content textblock and Large content which has ScrollViewer and Stack panel which has to display list of grids dynamically. My code goes like this

 

 

private RadTileViewItem BuildTileViewItem(string jobName)

 

{

 

 

RadTileViewItem rdTVItem = new RadTileViewItem();

 

rdTVItem.Header = jobName;

 

 

RadFluidContentControl rdFldContent = new RadFluidContentControl();

 

rdFldContent.ContentChangeMode =

 

ContentChangeMode.Manual;

 

rdFldContent.State =

 

FluidContentControlState.Normal;

 

rdFldContent.TransitionDuration =

 

new TimeSpan(0, 0, 2);

 

 

 

//Small TileItem Content

 

 

 

TextBlock txtBlock = new TextBlock();

 

txtBlock.Text = jobName;

txtBlock = ItemTextStyle(txtBlock);

 

 

Border textBorder = new Border();

 

textBorder = TileViewItemBorderStyle(textBorder);

textBorder.Child = txtBlock;

rdFldContent.Content = textBorder;

 

 

//Large TileItem Content

 

 

 

StackPanel stkPnlJob = new StackPanel();

 

stkPnlJob.Name =

 

"stkPnlJob";

 

 

 

ScrollViewer scroll = new ScrollViewer();

 

scroll.HorizontalScrollBarVisibility =

 

ScrollBarVisibility.Auto;

 

scroll.VerticalScrollBarVisibility =

 

ScrollBarVisibility.Auto;

 

scroll.HorizontalAlignment = System.Windows.

 

HorizontalAlignment.Left;

 

scroll.Name =

 

"LayoutJobPost";

 

scroll.Content = stkPnlJob;

 

 

Border largeBorder = new Border();

 

largeBorder = TileViewItemBorderStyle(textBorder);

largeBorder.Child = scroll;

rdFldContent.LargeContent = largeBorder;

rdTVItem.Content = rdFldContent;

 

 

return rdTVItem;

 

}



Its not displaying radTileItem properly. can anyone help solving this problem please.

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 22 Mar 2012, 05:39 PM
Hello,
Could you please tell us what exactly is not displaying correctly because I tried your code with some small changes (removed the TileViewItemBorderStyle and ItemTextStyle because we don't have their code) and everything seemed to work just fine. I've attached the sample project that I used for testing so you could examine it and tell us how it differs from yours.
If you need further assistance please feel free to ask.

Regards,
Zarko
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TileView
Asked by
Vidya
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or