We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Welcome to the Syncfusion Essential Studio Angular2 Platform

Hello,

Welcome to the Syncfusion Essential Studio Angular2 Platform.

Post all issues related to Syncfusion Essential Studio Angular2 and feedback in this forum.

Regards, 
Syncfusion Essential Studio Angular2 Team.

2 Replies

KR kamran rashedi March 31, 2022 05:57 PM UTC

hello,

Currently, I am working on scheduler in angular. I need to know how can I stop or disabling one the functionality.

action:  ( left mouse click + holding +  moving mouse) 

The View moves to left or right. I need to stop it. it suppose to be some api to stop the default. please advise

<ejs-schedule></ejs-schedule>


RM Ruksar Moosa Sait Syncfusion Team April 7, 2022 08:24 AM UTC

Hi Kamran,


We have prepared a sample to disable the left and right swipe actions by setting the request type as “dateNavigate” and type of event as “touchmove” and bind it to onActionBegin method like the below code snippet.

public
onActionBegin(argsActionEventArgs): void {

    // To disable the left and right swipe action

    if (args.requestType == 'dateNavigate' && args.event.type == 'touchmove') {

      args.cancel = true;

    }

  }

Sample: https://stackblitz.com/edit/angular-disable-swipe-actions-kphl1d?file=app.component.ts

Kindly try the above solution and let us know if this meets your requirement.


Regards,

Ruksar Moosa Sait


Loader.
Live Chat Icon For mobile
Up arrow icon