Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SankeyNodeClickEventArgs.Node Property

Returns the clicked node.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public SankeyNodeInfo Node { get; set; }

#Property Value

Type Description
SankeyNodeInfo

The clicked node.

#Remarks

The following code snippet handles the NodeClick event and displays information about the clicked node and associated links:

<DxSankey Data="@Data"
          Width="100%"
          Height="440px"
          NodeClick="@OnNodeClick"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    <DxSankeyNodeSettings Width="8" Spacing="30" />
    <DxSankeyLinkSettings ColorMode="SankeyLinkColorMode.Gradient" />
    <DxTitleSettings Text="Commodity Turnover" />
</DxSankey>

@Message

@code {
    IEnumerable<SankeyDataPoint> Data = Enumerable.Empty<SankeyDataPoint>();
    protected override void OnInitialized() {
        Data = GenerateData();
    }

    string Message { get; set; }
    void OnNodeClick(SankeyNodeClickEventArgs args) {
        var node = args.Node;
        Message = "The clicked node: " + node.Label + ". " +
          "Incoming links: " + node.LinksIn.Length + ". " +
          "Outgoing links: " + node.LinksOut.Length + ".";
    }
}

See Also