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
close icon

SfSchedule DayView cell tapping doesnt work in Android and UWP using latest 2 versions

Hi,
everything was working fine using android support libraries 23.0.x.x but once I upgraded to 25.4.0.2, Whenever I tap on a cell in DayView, it throws expection below. I am handling Celltapped as below.

Schedule.CellTapped += Schedule_ScheduleCellTapped;
async void Schedule_ScheduleCellTapped(object sender, CellTappedEventArgs args)
{
///
}

09-07 00:48:47.882 I/MonoDroid(11386): UNHANDLED EXCEPTION:
09-07 00:48:47.890 I/MonoDroid(11386): System.InvalidCastException: Specified cast is not valid.
09-07 00:48:47.890 I/MonoDroid(11386): at Com.Syncfusion.Schedule.DayView.Handle_Touch (System.Object sender, Android.Views.View+TouchEventArgs motionEvent) [0x001f5] in <3994c011009644c89830cb206bd2eb54>:0
09-07 00:48:47.890 I/MonoDroid(11386): at Android.Views.View+IOnTouchListenerImplementor.OnTouch (Android.Views.View v, Android.Views.MotionEvent e) [0x00014] in :0
09-07 00:48:47.890 I/MonoDroid(11386): at Android.Views.View+IOnTouchListenerInvoker.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v, System.IntPtr native_e) [0x00017] in :0
09-07 00:48:47.890 I/MonoDroid(11386): at (wrapper dynamic-method) System.Object:774e44cd-70b4-4946-90a7-aad88d4e1773 (intptr,intptr,intptr,intptr)
09-07 00:48:47.896 D/Mono (11386): Assembly Ref addref HockeySDK.AndroidBindings[0xaa230100] -> System[0x998dd2e0]: 19
09-07 00:48:47.912 W/art (11386): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable

4 Replies

EM Emil September 7, 2017 12:44 AM UTC

I have tested this with in detailed and I understood it has nothing to do with the support libraries. It is simply crashing for last 2 versions. I downgraded to 15.0.2.46 version and everything is working as expected. This crash occurs in UWP as well on last 2 versions


Attachment: exception_cf468589.7z



SP Subburaj Pandian Veluchamy Syncfusion Team September 8, 2017 12:50 PM UTC

Hi Emil, 
 
Thank you for contacting Syncfusion support. 
 
Based on the provided information, we have checked and we are unable to reproduce the mentioned issue with Schedule CellTapped event in Xamain Forms (Android). We have prepared sample with updated the Xamarin.Android libraries to the latest version 25.4.0.2. for the same, please find the below sample. 
 
If the given sample doesn’t meet your requirement, could you please revert to us by modifying the provided sample with more information along with replication procedure to reproduce the issue. It will be helpful for us to check on it and provide you the solution.  
 
Regards, 
Subburaj Pandian V 



DW David Welch May 23, 2019 07:36 PM UTC

This doesn't work for me either.  My code:

          schedule.CellTapped += async (sender, e) =>
            {
               ... code here
             }

never runs.

Also, it seems you would want to know issues, rather than putting it back on your customers to "reproduce".  This is VERY easy to set up, and, it's your product, not ours.


SP Subburaj Pandian Veluchamy Syncfusion Team May 24, 2019 09:51 AM UTC

Hi David,

Schedule has CellTapped event which is used to handle / touch operations in Schedule Timeslots, appointments and month cell. Using CellTappedEventArgs argument you can get the value of DateTime and Appointments in the specific element. CellTapped event must hooked as follows,

 
[C#] 
schedule.CellTapped += Schedule_CellTapped; 
 
private void Schedule_CellTapped(object sender, CellTappedEventArgs e) 
{ 
    // Perform function  
} 
 
 
Please refer our User Guide documentation regarding the same, 
 

We have prepared simple sample,

 
Sample link: Schedule_TappedSample

 
In the sample, we have hooked the CellTapped event and shown pop-up / alert when tapping performed in Schedule. 
 
Please check the sample and let us know whether it is helpful? If not, please revert to us with which Syncfusion update version you’re using, we will check on it and provide you the solution. 
  
Regards,
Subburaj Pandian V 
 


Loader.
Live Chat Icon For mobile
Up arrow icon