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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -