Jul 29, 2009, 11:57 PM
Notification Icons not displaying
It seems that several Icons will not show on the Notifications title. In the attached example Icon.Information will display but Icon.Help will not.
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Threading"%>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if(!Ext.IsAjaxRequest)
{
ScriptManager1.RegisterIcon(Icon.Information);
}
}
public static string stub = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.";
protected void Option1_Click(object sender, AjaxEventArgs e)
{
Ext.Notification.Show(new Notification.Config
{
Title = "Information Icon",
Icon = Icon.Information,
Html = stub
});
}
protected void Option2_Click(object sender, AjaxEventArgs e)
{
Ext.Notification.Show(new Notification.Config
{
Title = "Help Icon",
Icon = Icon.Help,
Html = stub
});
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:Window ID="Window1" runat="server" Title="Notifications" Width="300" Height="350">
<Body>
<ext:Accordion runat="server">
<ext:MenuPanel runat="server" Title="Icon Test" SaveSelection="false">
<Menu>
<Items>
<ext:MenuItem runat="server" Text="Show Information Icon">
<AjaxEvents>
<Click OnEvent="Option1_Click" />
</AjaxEvents>
</ext:MenuItem>
<ext:MenuItem runat="server" Text="Show Help Icon">
<AjaxEvents>
<Click OnEvent="Option2_Click" />
</AjaxEvents>
</ext:MenuItem>
</Items>
</Menu>
</ext:MenuPanel>
</ext:Accordion>
</Body>
</ext:Window>
</body>
</html>