Get taskbar information on click action

22 Mar 2018 / 1 minute to read

When we click on the taskbar, TaskbarClick event will be triggered, using this event and it’s arguments, we can do any action related to taskbar. The following code example shows how to use this event.

  • cshtml
  • @(Html.EJ().Gantt("gantt")    
        .ClientSideEvents(eve =>
        {
          eve.TaskbarClick("taskbarClick");
        })    
        )
    <script type="text/javascript">  
    function taskbarClick(args) {
         var taskbarElement = args.taskbarElement,
                    taskData = args.data,
                    target = args.target;
                //...            
    }
    <script>