RadToolTip Only the first record is tooltipified inside radgrid column

2 posts, 0 answers
  1. sam
    sam avatar
    52 posts
    Member since:
    Feb 2008

    Posted 20 Jul 2010 Link to this post

    Hi all, I am getting  Only the first record is tooltipified
    I  am using radgrid and i have a bound image column  and my code is the following

    <telerik:GridTemplateColumn DataField="Image" HeaderText="Image"
                SortExpression="Image" UniqueName="Image">
                  <ItemTemplate>
                     
                        <img src='<%# Eval("imgFile") %>' id="image1" width="30px" height="50px" />
                     
                     
                    </ItemTemplate>
               
            </telerik:GridTemplateColumn>

    I want to Use Radtooltip  or RadTooltipManager  instead of the traditional tooltip
    I tried to use Radtooltip first error i get is :

    Cannot find a server control with ID=image1. If you need to specify a client-side element ID, please set IsClientID to true.

     I changed IsClientId properties to true

    my code is now like this

    <ItemTemplate>
                     
                        <img src='<%# Eval("imgFile") %>' id="image1" width="30px" height="50px" />
                      <telerik:RadToolTip ID="RadToolTip2" runat="server" Animation="Slide" TargetControlID="image1" IsClientID="True" >
                       <%#Eval("IMGFILE", "SHOW ALBUM")%>
                    
                     </telerik:RadToolTip>

    </ItemTemplate>


     Only the first record is tooltipified

    please help me and thanks in advance



  2. sam
    sam avatar
    52 posts
    Member since:
    Feb 2008

    Posted 21 Jul 2010 Link to this post

    I have found the solution
    here is the code :
    <ItemTemplate >
                    <asp:HyperLink ID="HyperLink1" runat="server" Width="10px" Height="50px"
                       >
                       <asp:Image ID="Image2" runat="server" Width="90px" Height="120px" ImageUrl='<%# Eval("imgFile") %>'  ToolTip="Show album"    RelativeTo="Element" Position="MiddleRight" EnableShadow="true"/> </asp:HyperLink>
                    <telerik:RadToolTip ID="RadToolTip3" runat="server" TargetControlID="image2"
                        Animation="Slide" Position="MiddleRight">
                    </telerik:RadToolTip>
                </ItemTemplate>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top