Hi Martin,
Greetings from Syncfusion support.
We can achieve your requirement by making use of the GetSelectedRecordsAsync method in the OnToolbarClick event to get the details of the indented/outdented record. The following code snippets demonstrate the solution.
Index.razor
|
<GanttEvents OnToolbarClick="ToolbarClickHandler" TValue="TaskData"></GanttEvents>
|
|
public void ToolbarClickHandler(ClickEventArgs args)
{
if (args.Item.Text == "Indent" || args.Item.Text == "Outdent")
{
var record = this.Gantt.GetSelectedRecordsAsync();
}
}
|
We have also prepared a sample for your reference.
Please contact us if you require any further assistance.
Regards,
Monisha.