This is a migrated thread and some comments may be shown as answers.

Disable Swipe gesture on TKCalendar

1 Answer 103 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rezon
Top achievements
Rank 1
Rezon asked on 06 Jan 2017, 07:25 AM

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 

1 Answer, 1 is accepted

Sort by
0
Sophi
Telerik team
answered on 06 Jan 2017, 04:07 PM
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.

Regards,
Sophi
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.
Tags
Calendar
Asked by
Rezon
Top achievements
Rank 1
Answers by
Sophi
Telerik team
Share this question
or