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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cancel key pressing

Thread ID:





131731 Jul 25,2017 01:27 PM UTC Jul 28,2017 09:56 AM UTC WPF 2
Tags: SfSchedule
Asked On July 25, 2017 01:27 PM UTC

Hi folks,

I need cancel any keyboard input pressing on schedule view (specially Del key). I have tested:

                    <schedule:SfSchedule x:Name="schedule" Grid.Column="0" Grid.Row="0"

        private void schedule_PreviewKeyDown(object sender, KeyEventArgs e)
            e.Handled = false;

But Del que still deletes appointments (I do not want to delete using keyboard)


Subburaj Pandian Veluchamy [Syncfusion]
Replied On July 27, 2017 06:16 PM UTC

Hi Josep, 
Thank you for contacting Syncfusion support. 
Currently we are checking on this requirement to achieve in sample level, we will analyze and update you the details at the earliest. We appreciate your patience until then. 
Subburaj Pandian V.     

Vigneshkumar Ramasamy [Syncfusion]
Replied On July 28, 2017 09:56 AM UTC

Hi Josep 
Thanks for your patience. 
As of now we don’t have any direct support to prevent deleting appointment when Delete key pressed. But we have created a sample level workaround to achieve your requirement by using AppointmentCollectionChanged event. Please find the sample in the below link. 
Sample link:
In the above sample based on the NotifyCollectionChangedAction we have achieved your requirement. Please find the below code snippet for the same. 
private void Schedule_AppointmentCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) 
            if (e.Action == NotifyCollectionChangedAction.Remove && this.isDeleteButtonPressed) 
Please let us know if you have any concern. 
Vigneshkumar R 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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