How to add PeekTemplate to RadIconTile on server side

2 posts, 0 answers
  1. Nitisak
    Nitisak avatar
    6 posts
    Member since:
    Aug 2013

    Posted 07 Oct 2013 Link to this post

    HI , Telerik Support Team

    I need to add PeekTemplate  (<img src="../../Img/Wide/img_edit.png" alt="" />)
    to RadIconTile on Server-side
    Below is my code :
    RadIconTile rIcon = new RadIconTile();
    rIcon.Target = "_blank";
    rIcon.NavigateUrl = "";
    rIcon.Shape = TileShape.Wide;
    rIcon.ImageUrl = "img/menu/icon_editor.png";
    rIcon.BackColor = System.Drawing.Color.Green;
    rIcon.Title.Text = "editor";
    rIcon.PeekTemplateSettings.Animation = PeekTemplateAnimation.Slide;
    rIcon.PeekTemplateSettings.ShowInterval = 4000;
    rIcon.PeekTemplateSettings.CloseDelay = 3000;
    rIcon.PeekTemplateSettings.AnimationDuration = 800;
    rIcon.PeekTemplateSettings.ShowPeekTemplateOnMouseOver = true;
    rIcon.PeekTemplateSettings.HidePeekTemplateOnMouseOut = true;
    rIcon.PeekTemplateSettings.Easing = "easeOutExpo";

    Thx. Nitisak
  2. Marin Bratanov
    Marin Bratanov avatar
    4439 posts

    Posted 08 Oct 2013 Link to this post

    Hello Nitisak,

    You can use the PeekContentContainer property each tile exposes ( to add the desired controls to its peek template. It can be a simple literal for your image. An example is shown here:

    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.
Back to Top