Hello, I will attempt to articulate my problem as best I can. Let me start off by saying I and my co-workers thoroughly enjoy your products.
I have a RadGrid with a variety of columns, which currently have asp tool tips that I am trying to convert to using Telerik's rad ToolTip control. Two of the columns in particular are grid template columns that have link button and image controls inside of the ItemTemplate tags respectively.
Like this:
I have tried adding tool tips to the grid and to these two items specifically via two methods, which both have yielded unexpected results.
First by simply adding the Rad ToolTip Manager control and setting the AutoToolTipify property to true.
Like this:
When this method is used however it seems any tool tips specific to certain rows and columns are lost and only the tool tips specified for the radgrid as a whole are displayed. In other words if I have something like RadGrid1.ToolTip = "HelloWorld" in the .resx file, then only the phrase "Hello World" appears on mouse over for every control in the grid, even if something else is specified. And it even seems to override the pager, header and footer tool tips as well, as no tool tips will appear at all for the pager, header and footer controls.
The other method, with which I am have equally dubious success, utilizes one of your examples where your instructions recommend placing a Rad ToolTip, rather than a rad ToolTipManager, directly inside the ItemTemplate tags, setting the TargetControlID and IsClientID properties for each.
Like this:
Or this:
(Note: I did not actually have both tool tips active at the same time as it appear above, but it is shown for demonstration purposes , to note each approach).
However with this approach, while the rest of the radGrid is 'ToolTipified' the image and link button control tooltips do NOT display. No tooltip shows at all. As you can see I have tried specifying both the link button itself and the image control as the TargetControlID to no avail.
How can I create a rad ToolTip for the image and/or linkbutton controls nested inside of the the ItemTemplate tags?
On a related note I have also noticed that when the RadToolTip control does successfully appear the asp tool tips are still appearing on mouse over. Is there a way to display only the rad toolTips?
Thank you in advance.
-Justin
I have a RadGrid with a variety of columns, which currently have asp tool tips that I am trying to convert to using Telerik's rad ToolTip control. Two of the columns in particular are grid template columns that have link button and image controls inside of the ItemTemplate tags respectively.
Like this:
<
telerik:GridTemplateColumn
ItemStyle-HorizontalAlign
=
"Center"
AllowFiltering
=
"false"
UniqueName
=
"UniqueImageName"
>
<
ItemTemplate
>
<
asp:Image
ID
=
"imgSomeimageName"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
ItemStyle-HorizontalAlign
=
"Center"
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lbtnSomebutton"
runat
=
"server"
CommandArgument='<%# Eval("ObjectID") %>'
OnCommand="lbtnSomebutton_Command" Enabled='<%# Eval("SomeThingEnabled")
%>'meta:resourcekey="lbtnSomebutton">
<
asp:Image
ID
=
"imgSomeButtonIcon"
runat
=
"server"
ImageUrl
=
"~/Images/SomeButtonIcon.gif"
Visible='<%#
Eval("SomethingHasValue") %>' />
</
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
I have tried adding tool tips to the grid and to these two items specifically via two methods, which both have yielded unexpected results.
First by simply adding the Rad ToolTip Manager control and setting the AutoToolTipify property to true.
Like this:
<
telerik:RadToolTipManager
runat
=
"server"
RelativeTo
=
"Element"
Position
=
"Center"
ID
=
"radToolTipMgr1"
HideEvent
=
"LeaveTargetAndToolTip"
AutoTooltipify
=
"true"
Width
=
"375px"
OffsetY
=
"-1"
OnAjaxUpdate
=
"OnAjaxUpdate"
>
</
telerik:RadToolTipManager
>
When this method is used however it seems any tool tips specific to certain rows and columns are lost and only the tool tips specified for the radgrid as a whole are displayed. In other words if I have something like RadGrid1.ToolTip = "HelloWorld" in the .resx file, then only the phrase "Hello World" appears on mouse over for every control in the grid, even if something else is specified. And it even seems to override the pager, header and footer tool tips as well, as no tool tips will appear at all for the pager, header and footer controls.
The other method, with which I am have equally dubious success, utilizes one of your examples where your instructions recommend placing a Rad ToolTip, rather than a rad ToolTipManager, directly inside the ItemTemplate tags, setting the TargetControlID and IsClientID properties for each.
Like this:
<
telerik:GridTemplateColumn
ItemStyle-HorizontalAlign
=
"Center"
AllowFiltering
=
"false"
UniqueName
=
"MyImage"
>
<
ItemTemplate
>
<
asp:Image
ID
=
"imgMyImage"
runat
=
"server"
/>
<
telerik:RadToolTip
TargetControlID
=
"imgMyImage"
IsClientID
=
"true"
runat
=
"server"
></
telerik:RadToolTip
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Or this:
<
telerik:GridTemplateColumn
ItemStyle-HorizontalAlign
=
"Center"
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lbtnSomeButton"
runat
=
"server"
CommandArgument='<%# Eval("ObjectID") %>'
OnCommand="lbtnSomeButton_Command" Enabled='<%# Eval("SomethingEnabled") %>'
meta:resourcekey="lbtnSomeButton">
<
asp:Image
ID
=
"imgSomeIcon"
runat
=
"server"
ImageUrl
=
"~/Images/SomeIcon.gif"
Visible='<%#
Eval("SomethingHasValue") %>' />
</
asp:LinkButton
>
<
telerik:RadToolTip
ID
=
"RadToolTip1"
TargetControlID
=
"imgSomeIcon"
IsClientID
=
"true"
runat
=
"server"
>
</
telerik:RadToolTip
>
<
telerik:RadToolTip
ID
=
"RadToolTip2"
TargetControlID
=
"lbtnSomeButton"
IsClientID
=
"true"
runat
=
"server"
>
</
telerik:RadToolTip
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
However with this approach, while the rest of the radGrid is 'ToolTipified' the image and link button control tooltips do NOT display. No tooltip shows at all. As you can see I have tried specifying both the link button itself and the image control as the TargetControlID to no avail.
How can I create a rad ToolTip for the image and/or linkbutton controls nested inside of the the ItemTemplate tags?
On a related note I have also noticed that when the RadToolTip control does successfully appear the asp tool tips are still appearing on mouse over. Is there a way to display only the rad toolTips?
Thank you in advance.
-Justin