Skip to main content

BootstrapTreeView.NodeDataBound Event

Occurs after a node has been bound to a data source.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public event BootstrapTreeViewNodeEventHandler NodeDataBound

Event Data

The NodeDataBound event's data class is BootstrapTreeViewNodeEventArgs. The following properties provide information specific to this event:

Property Description
Node Gets a node object related to the event.

Remarks

protected void TreeViewDataBinding_NodeDataBound(object source, DevExpress.Web.Bootstrap.BootstrapTreeViewNodeEventArgs e) {
    if (e.Node.Text == "ASPxCallback") {
        e.Node.Badge.Text = "Alert";
        e.Node.Badge.CssClass = "badge-danger";
    }
}
See Also