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.

Disable all editions on the SfScheduler control

Thread ID:

Created:

Updated:

Platform:

Replies:

128968 Feb 18,2017 04:01 PM Feb 21,2017 01:02 AM WPF 4
loading
Tags: SfSchedule
Wagener Nicolas
Asked On February 18, 2017 04:01 PM

Hello,

I'd like to make my SfSchedule totally disable except for the vertical scroll bar.

Like you can see on my screenshot, I would like a way to :

1- can't modify the month/day
2- keep the vertical scroll bar
3- disable appointment moves

IsEnabled="False" does the trick but removes the vertical scroll bar...
Contextmenu is disable by a e.Cancel = true and FYI I use a custom appointment template.

SfSchduler

Thank you for your help.

Nicolas.

Wagener Nicolas
Replied On February 18, 2017 04:04 PM


Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 20, 2017 01:59 AM

Hi Nicolas,

Thanks for your interest in Syncfusion Products.

Query #1: can't modify the month/day 
  
Based on the given information, we suspect that your requirement is to Modify the Header style. As of now we don’t have any direct support for this, but this requirement can be achieved by overriding the default template of Schedule header in WPF. We have prepared a simple sample for the same. Please refer the sample (SfSchedule_WPF).  
 
Query #2 & 3: keep the vertical scroll bar and disable appointment moves 
Appointment resizing can be disabled by triggering “AppointmentStartResizing” event in SfSchedule WPF. And the code won’t affect the vertical scroll bar interaction. Please refer the sample below

Sample: SfSchedule_WPF
 
 
If the above provided solution does not meet your requirement, could you please provide more details about the requirements with possible screenshot or sample demo which will be helpful for us to analyze further and provide him possible solution.

Regards,
Nijamudeen M. 


Wagener Nicolas
Replied On February 20, 2017 11:52 AM

Thank you Nijamudeen.

That's what I wanted, didn't see these event when I looked.

I just added this piece of code :

schedule.AppointmentStartDragging += Schedule_AppointmentStartDragging;

private void Schedule_AppointmentStartDragging(object sender, AppointmentStartDraggingEventArgs e)
{
    e.Cancel = true;
}

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On February 21, 2017 01:02 AM

 Hi Nicolas,

SfSchedule “AppointmentStartDragging” event is used to place an appointment from one time slot to another time slot rather "AppointmentStartResizing” event is used to alter the size of an appointment.

We glad to know that you have met your requirement. Please let us know if you require further assistance on this.

Regards,
Nijamudeen M.
 


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.

;