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

Dynamic TileView Content

1 Answer 60 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Dave Navarro
Top achievements
Rank 2
Dave Navarro asked on 15 Apr 2012, 04:25 PM

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

1 Answer, 1 is accepted

Sort by
0
Dave Navarro
Top achievements
Rank 2
answered on 17 Apr 2012, 05:39 AM
Hello,

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

Thanks!

~ Dave
Tags
TileView
Asked by
Dave Navarro
Top achievements
Rank 2
Answers by
Dave Navarro
Top achievements
Rank 2
Share this question
or