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

AppointmentSelectionChanged : how to touch?

5 Answers 127 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
HFP
Top achievements
Rank 1
HFP asked on 30 Nov 2016, 08:51 PM

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

Sort by
0
Georgi
Telerik team
answered on 02 Dec 2016, 04:16 PM
Hi Hagen,

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
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
HFP
Top achievements
Rank 1
answered on 06 Dec 2016, 12:36 AM

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

 

0
Georgi
Telerik team
answered on 06 Dec 2016, 08:08 AM
Hello 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
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
HFP
Top achievements
Rank 1
answered on 06 Dec 2016, 11:58 PM

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

0
Georgi
Telerik team
answered on 07 Dec 2016, 09:13 AM
Hi 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
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Tags
ScheduleView
Asked by
HFP
Top achievements
Rank 1
Answers by
Georgi
Telerik team
HFP
Top achievements
Rank 1
Share this question
or