This is a migrated thread and some comments may be shown as answers.

RadToolTip Only the first record is tooltipified inside radgrid column

1 Answer 58 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
sam
Top achievements
Rank 1
sam asked on 20 Jul 2010, 10:20 PM
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



1 Answer, 1 is accepted

Sort by
0
sam
Top achievements
Rank 1
answered on 21 Jul 2010, 09:50 AM
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>
Tags
ToolTip
Asked by
sam
Top achievements
Rank 1
Answers by
sam
Top achievements
Rank 1
Share this question
or