Hi jmcantrell,
There is no property like 'Template' in the Tooltip control. But this control supports templates.
Please look at the example.
Example
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void ApplyClick(object sender, DirectEventArgs e)
{
var tpl = new XTemplate { ID = "Template1" };
tpl.Html = @"<p>Name: {Name}</p>
<p>Company: {Company}</p>
<p>Location: {City}, {State}</p>
<p>Kids:
<tpl for=""Kids"" if=""Name=='Jack Slocum'"">
<tpl if=""Age > 1""><p>{#}. {parent.Name}'s kid - {Name}</p></tpl>
</tpl></p>";
tpl.Overwrite(this.ToolTip1, new
{
Name = "Jack Slocum",
Company = "Ext JS, LLC",
Address = "4 Red Bulls Drive",
City = "Cleveland",
State = "Ohio",
Zip = "44102",
Kids = new object[] {
new { Name = "Sara Grace", Age = 3 },
new { Name = "Zachary", Age = 2 },
new { Name = "John James", Age = 0 }
}
});
tpl.Render();
}
</script>
<!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>Dynamic Template - Ext.NET Examples</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Button runat="server" Text="Test button with tooltip">
<ToolTips>
<ext:ToolTip ID="ToolTip1" runat="server" Html="Hello!" />
</ToolTips>
</ext:Button>
<ext:Button runat="server" Text="Apply Template">
<DirectEvents>
<Click OnEvent="ApplyClick">
<EventMask ShowMask="true" />
</Click>
</DirectEvents>
</ext:Button>
</form>
</body>
</html>