feat: add OnClick EventCallBack to/in [FluentGanttChart]

Open
#5,569 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@vnbaaij is already working on this.

Since Oct 28, 2026.

Assessment

This issue has not been assessed yet.

Description

feature v5

🙋 Feature Request

Is it possible to add a OnClick event on the GanttChartDataPoint?
I would like to do an event: open a dialog, go to a page... when the user clicks on a block in the GanttChart.

🤔 Expected Behavior

When you click on a block in the Gantt, the function given thru the EventCallBack of the GanttChartDataPoint will be fired.

💻 Examples

private readonly IReadOnlyList<GanttChartDataPoint> chartData = [ new GanttChartDataPoint { X = new GanttChartXRange { Start = new DateTime(2009, 1, 1), End = new DateTime(2009, 2, 28) }, Y = "Job A", Legend = "Alex", Color = DataVizPalette.Color1, OnClick = EventCallback.Factory.Create<GanttChartDataPoint>(this, CustomHandleFunction) } ];

Dominant language
C#
Stars
4.9k
Forks
497
Avg merge
1d 1h
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/fluentui-blazor

All issues in microsoft/fluentui-blazor

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.