America/US Samples
Europe Samples
Asia Samples

Gaia Ajax: Repeater with ToolTip

This ToolTip takes advantage of the built-in events MouseOver and MouseOut on the Gaia Panel. To set the location of the tooltip we utilize the ClientUtils control, which helps us clone the position of where the MouseOver event was triggered. To set the size of the tooltip panel we just copy the value of the width and height from the style collection of the image itself.

Autumn
Breakwater
Coast

Dark Beach
New York
North Norway

Summer Lake
Winter

Markup (ASPX/.aspx)

   1:   
   2:  <asp:Repeater runat="server" ID="zRepeater">
   3:      <ItemTemplate>
   4:          <gaia:Panel runat="server" ID="zPnl" CssClass="item-container"
   5:              OnMouseOver="MouseOver" OnMouseOut="MouseOut">
   6:              <gaia:Image runat="server" ID="zImg" ImageUrl='<%# Eval("ThumbUrl") %>'
   7:                  AlternateText='<%# Eval("Text") %>' />
   8:              <gaia:HiddenField runat="server" ID="zImgId" Value='<%# Eval("Id") %>' />
   9:          </gaia:Panel>
  10:          <gaia:Panel runat="server" ID="zToolTip" Visible="false" CssClass="tooltip">
  11:              <uc1:ToolTipContent ID="zToolTipContent" runat="server" />
  12:          </gaia:Panel>
  13:          <%= InsertLineBreak() %>
  14:      </ItemTemplate>
  15:  </asp:Repeater>
  16: