Override click event on schedule's toolbar

Hello,
I want to send some request withing clicking on Date controls on the toolbar in Schedule module.
where i can access click event of date controls in toolbar?

1 Reply

VS Velmurugan S Syncfusion Team July 9, 2018 03:13 PM UTC

Hi Adnan, 
 
Thanks for Contacting Syncfusion support. 
 
By default, a request will be sent while clicking on the date controls in the toolbar. Therefore, if you would prefer to perform any actions like day/view/date navigation, the request will be automatically initiated. Please refer to the following code example, if you need to include an additional parameter along with the request. 
 
public onActionBegin(args: any): void {     
      if (args.requestType == "dateNavigate") { 
        let schObj: Schedule = (document.querySelector(".e-schedule") as EJ2Instance).ej2_instances[0] as Schedule; 
        schObj.eventSettings.query = new Query().addParams('EventId', '5'); 
      } 
    } 
 
Kindly try with the above suggestion and let us know, if you need any further assistance on this. 
Regards, 
Velmurugan 


Loader.
Up arrow icon