This is a migrated thread and some comments may be shown as answers.

prevent default behaviour of Destroy

3 Answers 264 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Vaishali
Top achievements
Rank 1
Vaishali asked on 31 Jul 2019, 03:51 PM

Hi,

In this dojo example, https://dojo.telerik.com/atakEcUH, I am not able to prevent the default behaviour of remove event like how it works in edit event.

Can you please help?

Thanks,

Vaishali

3 Answers, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 02 Aug 2019, 03:43 PM
Hi Vaishali,

Thank you for the Dojo example. Based on the provided information I cannot be sure what exactly is the issue are reporting. 

The e.preventDefault() line in the provided dojo is preventing the removal of a given event. It is not stopping the appearance of the confirmation popup. There is no way to stop the appearance of the popup window. 

If you want to disable the remove task functionality, it could be achieved by setting the Gantt's editable:destroy configuration to false. Here is a Dojo with added editable:destroy

If none of the above assumptions doesn't help you to resolve the issue,  please give me more details about what is the desired functionality you want to be achieved  - what do you expect to happen and what is actually happening? 

Regards,
Petar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.

0
Vaishali
Top achievements
Rank 1
answered on 02 Aug 2019, 05:13 PM
Yes, I want to prevent the delete confirmation dialog and put a custom dialog instead. Is there any way to achieve this?
0
Petar
Telerik team
answered on 06 Aug 2019, 11:26 AM
Hi Vaishali,

Please check this forum post: https://www.telerik.com/forums/custom-template-for-gantt-delete-confirmation-popup#WHLvZcal10G3ECAnNkeNwg which is describing how the desired functionality could be achieved.

I hope the instructions in the above thread will help you resolve the issue. 

Regards,
Petar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Gantt
Asked by
Vaishali
Top achievements
Rank 1
Answers by
Petar
Telerik team
Vaishali
Top achievements
Rank 1
Share this question
or