Adding List of grids in RadFluidContentControl.LargeContent not working

2 posts, 0 answers
  1. Vidya
    Vidya avatar
    1 posts
    Member since:
    Mar 2012

    Posted 19 Mar 2012 Link to this post

    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.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 22 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top