Hi Jethro,
Could you please provide more information about your requirement? So that we can analyze on your requirement further and provide you a possible solution.
Regards
Vigneshkumar R
October 2015 | ||||||
Monday - 21 | Tuesday -22 | Wed - 23 | Thurs- 24 | |||
Hi
Jethro,
As
of now your requirement can be achieved by overriding the default template of
HeaderTitleBarView and ScheduleDaysHeaderViewControl in schedule control. We
have created a sample based on your requirement and please find the sample in
the below link.
Sample Link: Scheudle_Header
Regards
Vigneshkumar
R
Hi Jethro,
Regarding Query “To
get the day and time of dragging appointment”
You can use AppointmentDragging
and also AppointmentEndDragging event
arguments to get the date and time detail of dragging appointment.
Please find the below code snippet to trigger Appointment
dragging event in schedule.
Code Snippet:
schedule.AppointmentDragging += schedule_AppointmentDragging;
schedule.AppointmentEndDragging += schedule_AppointmentEndDragging; |
void schedule_AppointmentDragging(object sender,
Syncfusion.UI.Xaml.Schedule.AppointmentDraggingEventArgs e) { var draggingFrom = e.From; var draggingTo = e.To;
} |
void
schedule_AppointmentEndDragging(object sender, Syncfusion.UI.Xaml.Schedule.AppointmentEndDraggingEventArgs e) { var draggingFrom = e.From; var draggingTo = e.To;
} |
Regarding Query
“Removing default menu in SfSchedule”
You can use EnableTouch
property to set radial menu in SfSchedule.
Please find below Code snippet to enable Radial menu.
Code Snippet:
<schedule:SfSchedule ScheduleType="Week" EnableTouch="True" x:Name="schedule"/> |
Regards,
Jeyasri M
Hi Jethro,
As of now default context menu can be disabled by setting “ e.Cancel=true ” in ContextMenuOpening event. Please find the below code snippet for disabling the default context menu in schedule control.
C#
private void schedule_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { e.Cancel = true; } |
Regards
Vigneshkumar R
Hi jethro,
1. Unselect current day.
As of now your requirement can be achieved by changing the value of CurrentDateBackground and CurrentDateForeground property in the schedule control. Please find the below code snippet.
XAML
|
2. Getting selected appointment day.
As of now your requirement can be achieved by using ScheduleClick event in the schedule control. Please find the below code snippet for getting selected appointment day.
C#
void schedule_ScheduleClick(object sender, Syncfusion.UI.Xaml.Schedule.ScheduleClickEventArgs e) { string SelectedAppointmentDay; SelectedAppointmentDay = e.SelectedDate.Value.DayOfWeek.ToString(); } |
Note
In the above code snippet we have used SelectedDate argument of ScheduleClick event to get the selected appointment day.
Regards
Vigneshkumar R.
I have a question regarding to the overriding of the default template of the ScheduleDaysHeaderViewControl in schedule control, how can I remove the WeekEnd Parts?
Hi Jethro,
Based on the
provided information, we suspect that your requirement is to hide the WeekEnd
Days (NonWorkingDays). As of now your
requirement can be achieved by setting the NonWorkingDays property in the
schedule control. Please find the below code snippet and UG link below.
XAML
|
UG: http://help.syncfusion.com/wpf/sfschedule/non-working-hours#non-working-days-of-week
Please let us know, if you have any query.
Regards
Nijamudeen M.
Hi Jethro,
Based on the provided
information we suspect that your requirement is to remove the week end header.
We have prepared sample to remove the week header and please find the sample in
the below link.
Sample Link:
Scheudle_Header
Note:
In the above sample we have
used below code snippet to modify the week header.
public
class
DateToDayFormat
: IValueConverter { public
object
Convert(object
value, Type
targetType, object
parameter, System.Globalization.CultureInfo
culture) { string
format ; var
header = value as
ScheduleDaysHeaderViewControl; if
(header.DateTime.Date.DayOfWeek == DayOfWeek.Sunday
|| header.DateTime.Date.DayOfWeek == DayOfWeek.Saturday) { format = " "; return
format; } else { format = "dddd"; return
format; } }
public
object
ConvertBack(object
value, Type
targetType, object
parameter, System.Globalization.CultureInfo
culture) { throw
new
NotImplementedException(); } } |
If
the provided solution does not satisfy your requirement, Could you please
provide more information about your requirement, So that we can analyze on your
requirement further and provide you a possible solution?
Regards
Vigneskumar
R
Hi Jethro,
We are unable to reproduce the mentioned issue in the attached
sample which is updated previously. Could you please modify attached sample to
reproduce the issue and revert us back? So that we can analyze on the issue
further and provide you a possible solution.
Regards
Vigneshkumar R
Hi Jethro,
As of now your requirement of disable the appointment resizing programmatically can be achieved by using the AppointmentStartResizing event in the schedule control. In AppointmentStartResizing event by setting “e.Cancel=true” we can stop the appointment resizing. We have used below code snippet to stop the appointment resizing.
C#:
schedule.AppointmentStartResizing += schedule_AppointmentStartResizing; void schedule_AppointmentStartResizing(object sender, AppointmentStartResizingEventArgs e) { e.Cancel = true; } |
Please let us know if you have any concern.
Regards
Vigneshkumar R
Hi Jethro,
As of now don’t have any direct support to display window type tooltip when two appointments conflicts. But your requirement can be achieved by comparing the StartTime and EndTime of appointments in AppointmentCollection of SfSchedule. We have prepared a simple sample for this. Please find the sample below.
Sample link: Schedule_ToolTip_Sample_WPF
If the provided Sample does not meet your requirement, could you please modify the provided sample along with its reproducing procedure? It will be helpful for us to analyze on your requirement and provide you a possible solution.
Please let us know, if you have any query.
Regards,
Nijamudeen M.