disable delete keyboard support for gantt task

3 posts, 0 answers
  1. Rajshree
    Rajshree avatar
    27 posts
    Member since:
    Feb 2015

    Posted 22 Apr 2015 Link to this post

    i would like to disable the delete functionality from the radgantt. it happens when user click on delete button from keyboard.

    how can i achieve it?

     

  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 27 Apr 2015 Link to this post

    Hi,

    To disable the delete functionality you can do the following:
    <telerik:RadGantt ID="RadGantt1" runat="server"
        DisplayDeleteConfirmation="false">
    </telerik:RadGantt>
     
    <script>
        function pageLoad() {
            $find("RadGantt1")._widget.bind("remove", function (e) {
                e.preventDefault();
            });
        }
    </script>


    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rajshree
    Rajshree avatar
    27 posts
    Member since:
    Feb 2015

    Posted 27 Apr 2015 in reply to Bozhidar Link to this post

    Thank you.it worked like charm.
Back to Top