2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
In Gantt, by using “ActionComplete” client-side event with requestType argument as “validatePredecessor” and by disabling the “predecessorValidation” argument we can able to restrict drawing the dependency line to a specific type. The below code snippet explains restricting the dependency line draw action for creating only the FS (Finish-to-Start) dependency type. CSHTML @(Html.EJ().Gantt("GanttContainer") //.. .ClientSideEvents(cs => { cs.ActionComplete("actionComplete"); }) .Datasource(ViewBag.datasource) ) @(Html.EJ().ScriptManager()) <script type="text/javascript"> function actionComplete(args) { if (args.requestType == "validatePredecessor" && args.predecessorValidation) args.predecessor.indexOf("FS") != -1 ? (args.predecessorValidation = true) : (args.predecessorValidation = false); } </script> Sample link: Please refer the Sample link for more information about this.
|
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.