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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is there a way to detect when an event is tapped to add edit/delete event functionality?

Thread ID:

Created:

Updated:

Platform:

Replies:

121874 Feb 2,2016 08:12 PM UTC Sep 6,2017 06:31 AM UTC Xamarin.Forms 8
loading
Tags: SfSchedule
Romulo Mendivil
Asked On February 2, 2016 08:12 PM UTC

Pretty much as the subject says, I've been able to add the Schedule control to my app and populate it, but I have not found in the code or in the documentation for a way to catch if a user taps on a specific event. I'd like to bring up a new screen to edit an event if they tapped on it in the schedule.



Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 3, 2016 06:46 AM UTC

Hi Romulo,

Thanks for your interest in Syncfusion Products.

Based on the provided information, your requirement of tapping an appointment can be achieved by “ScheduleCellTapped” event in SfSchedule Xamarin. This event
 is used to listen while tap on the Schedule cell or Appointment, and it is applicable for all Schedule views. Please find the code snippets for the same.


Code Snippets:

[C#]

         schedule.ScheduleCellTapped += schedule_ScheduleCellTapped;


          void schedule_ScheduleCellTapped(object sender, ScheduleTappedEventArgs args)

            {

            //DateTime of the selected cell in Schedule

           var dateTime= args.datetime;


            //Schedule instance

           var schedule = args.Schedule;


            //Selected appointment informations

           var selectedAppointment = args.selectedAppointment;


             }


To know more about ScheduleCellTapped event, Please refer the following KB for this requirement.


KB Link: https://www.syncfusion.com/kb/6203/scheduletapped-event-in-xforms


If the provided samples does not meet your requirement, could you please provide us more information such as Xamarin cross platform, Schedule view along with simple sample (if possible screenshots)? It will be helpful for us to analyze on your requirement and provide you a possible solution.


Note: We will consider this ScheduleCellTapped event and update this in our SfSchedule Xamarin User Guide documentation improvement.

Please let us know, if you have any query.

Regards,
Nijamudeen M. 


Paul Mace
Replied On February 12, 2016 07:40 PM UTC

Nijamudeen,
In Xamarin.Forms  .ScheduleCellTapped  event is not triggered in MonthView.

There does not appear to be any exposed event for touching a day in the MonthView--though clearly the UI reflects the touch event.

Exposing the  .DateCellTapped event would enable us to program the desired response, rather than forcing the user to pick a different view.

Paul Mace


Paul Mace
Replied On February 13, 2016 05:04 PM UTC

...Or make the .Showinline=true appointments also return .ScheduleCellTapped

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 15, 2016 12:14 PM UTC

Hi @Paul,

We have already fixed the issue with "ScheduleCellTapped event which triggered in long press instead of touch (tap) event in MonthView of SfSchedule Xamarin (iOS). The fix for this issue has included in our Essential Studio service pack 1 for Volume 4, 2015 is rolled out and is available for download under the following link:


https://syncfusion.com/forums/122061/essential-studio-2015-volume-4-service-pack-release-v13-4-0-58-available-for-download


If the provided solution doesn’t meet your requirement, please revert us with more information so that we could analyze on it and provide you with the better solution.


Please let us know, if you have any query.

Regards,
Nijamudeen M.


Paul Mace
Replied On February 15, 2016 06:45 PM UTC

Any guess as to when Tapped event for Month View will be working in Android?

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 16, 2016 06:41 AM UTC

Hi Paul,

We don’t have any issues in ScheduleCellTapped event in Xamarin (Android, WinRT and WP81). We have tested the ScheduleCellTapped event in XForms (android) and it is working. We have prepared a simple sample for this. Please find the code example and sample in the below link.


C#:

      void schedule_ScheduleCellTapped(object sender, ScheduleTappedEventArgs args)

        {

            textBlock.Text = args.datetime.ToString();

        }



Sample Link: ScheduleApp_XFORMS.zip


If the provided information does not meet your requirement, could you please provide us more information? It will be helpful for us to analyze on it and provide you a possible solution.

Please let us know, if you have any query.

Regards,
Nijamudeen M.


Ian
Replied On September 5, 2017 11:30 PM UTC

Is the information in this thread still relevant? I can find no method in SfSchedule called ScheduleCellTapped. In android I use the ScheduleTapped method, but that doesn't exist in the xamarin.ios version.


Subburaj Pandian Veluchamy [Syncfusion]
Replied On September 6, 2017 06:31 AM UTC

Hi Ian, 
 
Tapped events in Xamarin Forms: 
ScheduleCellTapped event of Schedule has been deprecated, you can use CellTapped event for the same in Schedule Xamarin Forms, other events such as CellDoubleTapped and CellLongPressed also available in Schedule. You can refer our online user guide documentation for the same by the below link, 
 
 
Tapped event in Xamarin.iOS: 
In Xamarin.iOS also event name is CellTapped event in Schedule, please refer the below code example, 
 
[c#] 
schedule.CellTapped += Schedule_CellTapped; 
 
private void Schedule_CellTapped(object sender, CellTappedEventArgs e)
        {
            var selectedTime = e.Date;
            var selectAppointment = e.SelectedAppointment;
        } 
 
 
Please let us know if you have any query on this. 
 
Regards,   
Subburaj Pandian V.  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;