Dynamic TileView Content

2 posts, 0 answers
  1. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 15 Apr 2012 Link to this post

    Hello,

    I'm attempting to create some TileView content dynamically (in the CodeBehind at runtime) and I need a little nudge.

    Here's how I'm creating my TileViewItems;
        RadTileViewItem item = new RadTileViewItem();
        item.Header = row.selectedFileName;
        this.rtvImageGalleryImages.Items.Add(item);

    What I do first is get the list of names and then I loop through the list and if they match my search criteria I create a new TileViewItem for it. So far it works as expected. I create as many TileViewItems as needed for the items returned.

    But now I wish to add images and a label into the TileViewItem as I create them. How do I go about adding a Content to my newly created TileViewItem at runtime?

    Please let me know and thanks!

    ~ Dave

  2. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 17 Apr 2012 Link to this post

    Hello,

    I figured out something by looking through one of your examples.

    Thanks!

    ~ Dave
  3. DevCraft banner
Back to Top