prevent default behaviour of Destroy

4 posts, 0 answers
  1. Vaishali
    Vaishali avatar
    32 posts
    Member since:
    Jun 2019

    Posted 31 Jul 2019 Link to this post

    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

  2. Petar
    Admin
    Petar avatar
    509 posts

    Posted 02 Aug 2019 Link to this post

    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.

  3. Vaishali
    Vaishali avatar
    32 posts
    Member since:
    Jun 2019

    Posted 02 Aug 2019 in reply to Petar Link to this post

    Yes, I want to prevent the delete confirmation dialog and put a custom dialog instead. Is there any way to achieve this?
  4. Petar
    Admin
    Petar avatar
    509 posts

    Posted 06 Aug 2019 Link to this post

    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.
Back to Top