Setting PeekTemplateSettings programatically

2 posts, 0 answers
  1. dhlennon
    dhlennon avatar
    32 posts
    Member since:
    Oct 2006

    Posted 26 Jun 2013 Link to this post

    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.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 27 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top