Disable Swipe gesture on TKCalendar

Thread is closed for posting
2 posts, 0 answers
  1. Rezon
    Rezon avatar
    1 posts
    Member since:
    Oct 2016

    Posted 06 Jan 2017 Link to this post

    Here's my situation, I created an app where user can select a date range, therefore I had to use selection mode: TKCalendarSelectionModeRange. I wanted to achieve a behavior where swiping left & right let you navigate to different months. There can be situations where user need to select dates between 2 months and they need to navigate to different month.

    This works just fine on RadCalendar, however on TKCalendar, swiping will "select the dates that I swiped" instead. I know it's possible to navigate through different months by "pinching out" the screen, but it's not that intuitive & clear to the users. 

    So the question is then: Is it possible to disable swipe gesture on TKCalendar? And reserver the swiping gesture to navigating the months.
    I'm using the nativescript-telerik-ui-pro 

  2. Sophi
    Sophi avatar
    103 posts

    Posted 06 Jan 2017 Link to this post

    Hi Rezon,

    The panning(swiping) gesture cannot be turned off, this is the intended behavior of the calendar when range selection mode is active.
    However I completely agree with you that pinching out is not especially intuitive action for navigation between months, so may I propose a bit different approach.
    Consider implementing navigation buttons above the calendar which provide easy and intuitive navigation.
    This way you can keep the swipe gesture and still have a straightforward navigation.
    The attached screenshot is an example of this exact scenario with the only difference that there are navigation buttons for both years and months.

    Should you have any further questions, write back any time.

    Telerik by Progress
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top