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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Schedule and Tab control on Mobile both trigger when swiping left and right

Thread ID:

Created:

Updated:

Platform:

Replies:

147813 Sep 24,2019 11:03 PM UTC Sep 25,2019 10:31 AM UTC Vue 1
loading
Tags: Schedule
Keith Nicholas
Asked On September 24, 2019 11:03 PM UTC


If you have several tabs in the the tabcontrol, one tab having a schedule.  When you swipe left or right when on the schedule tab, it both swaps Tabs AND changes the dates.  

If I wanted to give preference to tab swapping (without changing date range).  How do I do that?
If I wanted to give preference to Date swapping (without swapping tabs).  How do I do that?

Regards,

Keith

Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 25, 2019 10:31 AM UTC

 
Syncfusion greetings. 
 
Preference for Date swapping can be achieved using Tab selecting event. 
 
select: function(e) { 
      // To give preference to Date swapping (without swapping tabs 
      if ( 
        e.isSwiped && 
        !isNullOrUndefined(e.selectedContent.querySelector(".e-schedule")) 
      ) { 
        e.cancel = true; 
      } 
    } 
 
Preference for Tab swapping can be achieved using Schedule actionBegin event. 
 
onActionBegin: function(args) { 
      if ( 
        args.requestType === "dateNavigate" && 
        args.event.type === "touchmove" 
      ) { 
        //To give preference to tab swapping (without changing date range). 
 
        args.cancel = true; 
      } 
    } 
 
Regards, 
Karthi  
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon