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
    Marin Bratanov avatar
    3564 posts

    Posted 27 Jun 2013 Link to this post


    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:
    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: I am attaching screenshots with the relevant information marked as a reference.

    Marin Bratanov
    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. DevCraft R3 2016 release webinar banner
Back to Top