Hi, I have a tooltip in a templated column within my radgrid. I am trying to programmatically change the text on the tooltip depending upon a session variable.
However, I cannot seem to find the tooltip when I call it up in code.
Can anyone help.
I have posted my code.
However, I cannot seem to find the tooltip when I call it up in code.
Can anyone help.
I have posted my code.
<telerik:GridTemplateColumn UniqueName="TemplateColumn"> |
<EditItemTemplate> |
<asp:Button runat="server" CommandName="Update" Text="Update" /> |
<asp:Button runat="server" CausesValidation="false" CommandName="Cancel" |
Text="Cancel" /> |
</EditItemTemplate> |
<ItemTemplate> |
<asp:ImageButton ID="ibPrint" runat="server" ImageUrl="~/Images/print2.jpg" |
CausesValidation="false" CommandName="Edit" BackColor="White" /> |
<telerik:RadToolTip ID="ttibPrint" runat="server" TargetControlID="ibPrint" Text="print"> </telerik:RadToolTip> |
</ItemTemplate> |
<ItemStyle BackColor="White" HorizontalAlign="Center" /> |
</telerik:GridTemplateColumn> |
If Session("UserCulture") = 2 Then |
If TypeOf e.Item Is GridDataItem Then |
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) |
Dim editBtn1 As RadToolTip = TryCast(item("TemplateColumn1").Controls(1), RadToolTip) |
Dim editBtn3 As RadToolTip = TryCast(item("TemplateColumn").Controls(1), RadToolTip) |
editBtn1.Text = "视图采购申请" |
editBtn3.Text = "打印" |
End If |
End If |