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

Setting PeekTemplateSettings programatically

1 Answer 61 Views
TileList
This is a migrated thread and some comments may be shown as answers.
dhlennon
Top achievements
Rank 1
dhlennon asked on 26 Jun 2013, 11:56 AM
I have an object of type  RadImageAndTextTile and wish to set the PeekTemplate.

I can create a new  TilePeekTemplateSettings object and set the properties I want, but, contrary to what the documentation implies, I cannot apply this to the tile object as RadImageAndTextTile.PeekTemplateSettings is read only!

Also, I cannot find any docs on how to set the PeekTemplate itself from code-behind.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Jun 2013, 03:37 PM
Hello,

The PeekTemplateSettings exposes properties and thus does not require an object in order to set them. You can see how this is done in the following demo's code-behind: http://demos.telerik.com/aspnet-ajax/tilelist/examples/animations/defaultcs.aspx.
The PeekTemplate itself is basically a controls container, so an HTML string set is trough a literal, as shown in the same demo is one way to use it, another is to add the desired controls direcly to the PeekContentContainer.

Information on the matter is also available here: http://www.telerik.com/help/aspnet-ajax/tilelist-server-side-tile-object.html. I am attaching screenshots with the relevant information marked as a reference.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TileList
Asked by
dhlennon
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or