You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/navigation/server-side-programming/events/nodedatabound.md
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ position: 1
10
10
11
11
# NodeDataBound
12
12
13
-
##
14
13
15
14
The **NodeDataBound** event occurs for each new node that is added to the **Nodes** collection of the Navigation when it is bound.This event only occurs if the nodes are loaded from a data source (the **DataSource** or **DataSourceID** property is set).
16
15
@@ -26,7 +25,9 @@ The **NodeDataBound** event handler receives two arguments:
26
25
27
26
1. An EventArgs object. This object has an **Node** property, which provides access to the node that was just bound. This item, in turn, has a **DataItem** property,which lets you access the item in the data source to which the **NavigationNode** is being bound.
28
27
29
-
Use the **NodeDataBound** event handler to make changes to items as they are bound to the data.For example, you can set custom attributes based on other fields in the DataItem:
28
+
Use the **NodeDataBound** event handler to make changes to items as they are bound to the data. For example, you can set custom attributes based on other fields in the DataItem:
29
+
30
+
>caption Example 1: Modifying a node based on a condition.
0 commit comments