I want to implement click event on gantt chart task bar

Image_5002_1694022846503

I want implement on click event on blue color place please suggest me best solution


1 Reply

AG Ajithkumar Gopalakrishnan Syncfusion Team September 7, 2023 11:58 AM UTC

Hi Santosh,


Greetings from Syncfusion,


We have reviewed the query. Basically, we have the onTaskbarClick event in Gantt chart. This event returns taskbar data upon taskbar click. It is not necessary to add specified Click event for this. We have attached a code snippet and a sample for reference.

// app.components.ts
export class AppComponent

    {

      … 

    public onTaskbarClick(args: any)

    {

 

    }

}


// app.components.html

<ejs-gantt

        …

        (onTaskbarClick)="onTaskbarClick($event)">

</ejs-gantt>


Sample link : https://stackblitz.com/edit/angular-fvxftx-832z5u?file=src%2Fapp.component.html,src%2Fapp.component.ts

Regards,
Ajithkumar G


Loader.
Up arrow icon