javascript - Prevent View Opening Kendo -
in aspx, using kendo gantt, need prevent opening of view edit task when double click on third column of gantt "grid".
this js, how can that?
regards
<script type="text/javascript"> $(function (e) { $(".k-gantt").on("dblclick", ".k-gantt-treelist .k-grid-content tr", function () { var uid = $(this).attr("data-uid"); e.preventdefault(); if (uid) { $("#gantt").data("kendogantt").edittask(uid); } }); }); </script>
you can exclude 3rd column triggering function on click event.
$(".k-gantt").on("dblclick", ".k-gantt-treelist .k-grid-content tr :not(td:nth-child(3))", function () { var uid = $(this).attr("data-uid"); e.preventdefault(); if (uid) { $("#gantt").data("kendogantt").edittask(uid); } });
Comments
Post a Comment