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.
Unfortunately, activation email could not send to your email. Please try again.

Have just a 24hour recurring scheduler or a 7day recurring scheduler.

Thread ID:

Created:

Updated:

Platform:

Replies:

127533 Nov 21,2016 02:42 PM Nov 25,2016 06:20 AM Xamarin.Forms 3
loading
Tags: SfSchedule
Sujit Prasannakumar
Asked On November 21, 2016 02:42 PM

Hi,
  My customer bought me a license of syncfusion xamarin for app developlemt. 
The app is to control a hardware device. One thing we want to be able to do is to have a weekly or a daily schedule which the user can set for specific states of the device.
Is it possible to customize the SfScheduler to do either one of the following:
1) Show just a 24hour span to allow the user to create an appoinment without days of week or the calender date/year etc?
2) Show just the 7 day week and allow the user to create an appointment without the calender date/year etc?
Regards,
Sujit

Sivakumar Punniya Moorthi [Syncfusion]
Replied On November 22, 2016 07:38 AM

Hi Sujit, 
  
Thanks for your interest in Syncfusion products. 
  
Based on the provided information, we suspect that your requirement is to create appointments in Schedule view which displays either single day or entire days of a week. 
  
To display single day or entire days of a week. 
  
In order to display single day with 24 hours timeslots in it, we can set ScheduleView Property as DayView, also to view the entire days in a week , it has to be set as WeekView. To know more about it please refer the below link, 
  
 
 To create appointments through interactions 
  
Appointments can be created in the Schedule control through interaction by using ScheduleCellTapped event available in SfSchedule. For this please refer the below code snippet. 
  
[C#] 
schedule.ScheduleCellTapped+=Schedule_ScheduleCellTapped; 
  
privatevoidSchedule_ScheduleCellTapped(objectsender,ScheduleTappedEventArgsargs)
{
vardate = args.datetime; //To get the selected date time
varappointment = args.selectedAppointment; //To get the selected Appointment
}  
  
 The same scenario has been illustrated in our sample browser sample, for this please refer the below sample. 
 Xamarin/Samples/Forms/Samples/Schedule/ScheduleView. 
  
If the provided solution doesn’t meet your requirement, please provide us back with more information about your requirement along with screenshots (if possible.). So that we could analyse on it and provide you better solution. 
  
Regards, 
Sivakumar P 


Sujit Prasannakumar
Replied On November 24, 2016 01:25 PM

Hi Sivakumar,
   I have attached the screenshot from the sample scheduler component with the day view and week view and marked in red the things i don't need.
In case there is something wrong with attachment, the images are availabe at:
https://dl.dropboxusercontent.com/u/9531903/SchedulerDayView.png
https://dl.dropboxusercontent.com/u/9531903/SchedulerWeekView.png
Again "I don’t need the month, year or days of the month" to be displayed in the control, because our schedule is for an end device which works with either daily recurring schedule (without any date component) or weekly (S M T W T F S).

Regards,
Sujit

Attachment: SchedulerDayAndWeekView_dcb9fc68.zip

Sivakumar Punniya Moorthi [Syncfusion]
Replied On November 25, 2016 06:20 AM

Hi Sujit, 
 
Thanks for the update. 
 
Based on your provided information, your requirement (customize the SfSchedule header) can be achieved by setting Schedule HeaderHeight and ViewHeaderHeight to zero. By this action you can remove existing schedule header and add your own CustomHeader to the schedule. Please find the below code example,  
 
[c#] 
Schedule.HeaderHeight = 0; //Customize the schedule header height (Month Header)
Schedule.ViewHeaderHeight = 0;//Customize the Schedule header height(Day Header) 
 
Also we have prepared the simple sample based on your requirement, kindly find the sample link 
 
SampleLink :  HeaderCustomization 
  
Regards, 
Sivakumar P 


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.

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.

;