Occurs when an item is created in the Navigator control.
[JScript]
In JScript, you can handle the events defined by another class, but you cannot define your own.
Remarks
This event is raised after the item is created, but before the data is bound to the item.
Example
The following example demonstrates how to specify and code a handler for the Navigator~ItemCreated event of the Navigator.
[Visual Basic] A user control with the product count is appended to the link name.
<%@ Control Language="vb" AutoEventWireup="false" Inherits="System.Web.UI.UserControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="sfaddons" Namespace="StructuredSolutions.WebControls" Assembly="SSNavigator" %>
<%' © 2003 Structured Solutions %>
<script runat="server">
Sub ItemCreatedHandler(ByVal sender As Object, ByVal e As StructuredSolutions.WebControls.NavigatorItemEventArgs)
If e.Item.ProductCount > 0 Then
e.Item.MenuItem.DisplayName += " (" & e.Item.ProductCount & ")"
End If
End Sub
</script>
<sfaddons:navigator id=Navigator1 runat="server">
<SelectedCategoryTemplate>
<div style="background-color:black;border-bottom:1 solid black;padding:5 0 5 5;width:100%" onClick='window.location="<%# DataBinder.Eval(Container.MenuItem, "Link") %>"'><A class=LeftColumn style="background-color:transparent;color:white;WIDTH:auto" href='<%# DataBinder.Eval(Container.MenuItem, "Link") %>
</SelectedCategoryTemplate>
<CategoryTemplate>
<div style="border-bottom:1 solid black; padding:5 0 5 5; width:100%" onClick='window.location="<%# DataBinder.Eval(Container.MenuItem, "Link") %>"'><A class=LeftColumn style="WIDTH: auto" href='<%# DataBinder.Eval(Container.MenuItem, "Link") %>
</CategoryTemplate>
<SubcategoryTemplate>
<div style="border-bottom:1 solid black; padding:5 0 5 5; width:100%" onClick='window.location="<%# DataBinder.Eval(Container.MenuItem, "Link") %>"'><SPAN style='padding-left:<%# DataBinder.Eval(Container.MenuItem, "Level") * 10 %>
</SubcategoryTemplate>
<SelectedSubcategoryTemplate>
<div style="background-color:black;border-bottom:1 solid black;padding:5 0 5 5;width:100%" onClick='window.location="<%# DataBinder.Eval(Container.MenuItem, "Link") %>"'><SPAN style='padding-left:<%# DataBinder.Eval(Container.MenuItem, "Level") * 10 %>
</SelectedSubcategoryTemplate>
</sfaddons:navigator>
|
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Navigator Class
| Navigator Members
Copyright © 2005 by Structured Solutions. All rights reserved.