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. Image for the cookie policy date

Disable DELETE key pressed on Event

I have a scheduler with events.


When i select an event, i need to double click to see its custom form that lets me edit, cancel ,etc..


I do not need nor want the built-in functionality which does this



when selecting an event and pressing the DELETE key on the keyboard.  I need to disable this behavior.


How would i go about doing that


Thanks


2 Replies 1 reply marked as answer

FR Frederic October 12, 2022 07:57 PM UTC

Snippet
	public void OnPopupOpen(PopupOpenEventArgs<ScheduleData.ResourceDatadata)
	{
	    if (data.Type == PopupType.DeleteAlert)
	    {
	        Console.WriteLine("Cancelled Delete");
	        data.Cancel = true;
	        return;
	    }


This Works


Marked as answer

RV Ravikumar Venkatesan Syncfusion Team October 13, 2022 05:26 AM UTC

Hi Frederic,


Greetings from Syncfusion support.


We are happy that you have found the solution for your requirement on your own.


Regards,

Ravikumar Venkatesan


Loader.
Live Chat Icon For mobile
Up arrow icon