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

    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 =




    rdFldContent.State =




    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 =






    ScrollViewer scroll = new ScrollViewer();


    scroll.HorizontalScrollBarVisibility =




    scroll.VerticalScrollBarVisibility =




    scroll.HorizontalAlignment = System.Windows.




    scroll.Name =




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

    Posted 22 Mar 2012 Link to this post

    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.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top