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

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


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

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team 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  
 
 


Loader.
Live Chat Icon For mobile
Up arrow icon