After some hours of "try & error" without success, I'd like to ask here ...
How can I enable the AppointmentSelectionChanged event for touched Appointment objects?
When these Appointment objects are selected by using the mouse, it's working fine.
But trying to do the same with touch input fails.
In general, touch input can be used in ScheduleView, for instance by doing double clicks with touch on Appointment objects.
But unfortunately, the single "click" with touch fails ...
Are there any ideas to fix it?
Thanks a lot in advance!
Hagen
5 Answers, 1 is accepted
Usually when Tap is performed on appointment it should select the appointment and therefore the AppointmentSelectionChanged event should be thrown. Attached you can find sample project and video showing how it behave on my machine.
It would be great if you can check it out and let us know if we are not missing something or if there is something additional to be done in order to reproduce the described behaviour.
Also more information on touch support and our TouchManager you can find here and here.
Looking forward to your reply.
Regards,
Georgi
Telerik by Progress
Hello Georgi,
Thanks a lot for your help!
Even your example solution still wasn't the fix itself for this problem, it shows that the AppointmentSelectionChanged can work with touch without any problems. :-)
But nevertheless, there was a lot of "try and error" necessary to detect the reason and fix it finally ...
In a few words: RadScheduleView shouldn't be in a ScrollViewer with any PanningMode!
My RadScheduleView was in a ScrollViewer with PanningMode before, that's why all of my other trials (data binding, styling, sizing and so on) failed before. :-(
Fortunately, moving my RadScheduleView from this ScrollViewer into a simple grid fixed the problem.
Then, it was quite easy to play with the ScrollViewer proerties ... :-)
Thanks again & best wishes from Germany!
Hagen
I am glad that you were able to get it working.
What happens is that when the PanningMode is set, it captures the touch and therefore the touch events are not reaching the ScheduleView. So as the events are not raised the logic behind them is not executed and this could lead to similar issues with other controls.
Nevertheless you can also workaround it by setting the TouchManager.ScrollViewerSwipeMode property to Self and keep the ScheduleView inside the ScrollViewer:
<
ScrollViewer
PanningMode
=
"Both"
telerik:TouchManager.ScrollViewerSwipeMode
=
"Self"
>
Hope this would help.
Regards,
Georgi
Telerik by Progress
Hi Georgi,
Thank you very much!
Using this ScrollViewerSwipeMode seems to be the perfect solution. :-)
I've changed all my Scrollviewer controls now by adding this to PaningMode "Both" and it works great!
Well done ... :-)
Cheers,
Hagen
I am glad that this works for you.
If you have any other questions or concerns, please don't hesitate to write us.
Regards,
Georgi
Telerik by Progress