Hi,
I'm trying to use the ToolTipManager with a ToolBar but I can't get the tooltips to show. I have the following:
code behind:
I've probably missed something really basic, but any assistance would be greatly appreciated.
TIA
Jeff
I'm trying to use the ToolTipManager with a ToolBar but I can't get the tooltips to show. I have the following:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="ClientAdmin.Demo" %> |
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title></title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadToolBar ID="RadToolBar1" Runat="server"> |
<Items> |
<telerik:RadToolBarButton Text="Save" Value="Save" CommandName="Save"></telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Edit" Value="Edit" CommandName="Edit"></telerik:RadToolBarButton> |
</Items> |
</telerik:RadToolBar> |
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" |
Animation="Fade" Height="50px" onajaxupdate="RadToolTipManager1_AjaxUpdate" |
RelativeTo="BrowserWindow" Position="BottomRight" ShowCallout="false" VisibleOnPageLoad="True" Width="50px"> |
</telerik:RadToolTipManager> |
</div> |
</form> |
</body> |
</html> |
code behind:
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Web; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using Telerik.Web.UI; |
namespace ClientAdmin |
{ |
public partial class Demo : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
foreach (RadToolBarItem item in RadToolBar1.Items) |
{ |
if (item is RadToolBarButton) |
{ |
RadToolBarButton button = item as RadToolBarButton; |
RadToolTipManager1.TargetControls.Add(button.ClientID, button.Value, true); |
} |
} |
} |
protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e) |
{ |
} |
} |
} |
I've probably missed something really basic, but any assistance would be greatly appreciated.
TIA
Jeff