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

disable delete keyboard support for gantt task

2 Answers 134 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Rajshree
Top achievements
Rank 1
Rajshree asked on 23 Apr 2015, 02:52 AM

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 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 27 Apr 2015, 07:12 AM
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
0
Rajshree
Top achievements
Rank 1
answered on 27 Apr 2015, 04:02 PM
Thank you.it worked like charm.
Tags
Gantt
Asked by
Rajshree
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Rajshree
Top achievements
Rank 1
Share this question
or