From 8317c4ad339c3751fca1a8bc1b4d87042f15839b Mon Sep 17 00:00:00 2001
From: UDHAYAKUMAR <udhayakumar.anand@syncfusion.com>
Date: Wed, 6 Aug 2025 12:36:37 +0530
Subject: [PATCH] 968460: commit change

---
 .../gantt/task-constraints-cs1/index.js       | 32 ++++++++-----------
 .../gantt/task-constraints-cs1/index.ts       | 31 ++++++++----------
 .../gantt/task-constraints-cs1/js/index.html  | 15 ++++-----
 .../gantt/task-constraints-cs1/ts/index.html  | 15 ++++-----
 .../gantt/task-constraints-cs2/index.js       | 32 ++++++++-----------
 .../gantt/task-constraints-cs2/index.ts       | 28 ++++++++--------
 .../gantt/task-constraints-cs2/js/index.html  | 15 ++++-----
 .../gantt/task-constraints-cs2/ts/index.html  | 15 ++++-----
 .../code-snippet/gantt/wbscolumn-cs2/index.js |  3 +-
 ej2-javascript/gantt/columns/wbs-column.md    |  8 ++---
 ej2-javascript/gantt/task-constraints.md      |  8 ++---
 11 files changed, 93 insertions(+), 109 deletions(-)

diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.js b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.js
index f4e647f46..27527aeaf 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.js
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.js
@@ -2,6 +2,19 @@ ej.gantt.Gantt.Inject(ej.gantt.Selection,
     ej.gantt.Toolbar,
     ej.gantt.DayMarkers,
     ej.gantt.Edit);
+window.getConstraintText = function (value) {
+    var map = {
+        0: 'As Soon As Possible',
+        1: 'As Late As Possible',
+        2: 'Must Start On',
+        3: 'Must Finish On',
+        4: 'Start No Earlier Than',
+        5: 'Start No Later Than',
+        6: 'Finish No Earlier Than',
+        7: 'Finish No Later Than'
+    };
+    return map[value];
+};
 var ganttChart = new ej.gantt.Gantt({
     dataSource: constraintData,
     taskFields: {
@@ -69,21 +82,4 @@ var ganttChart = new ej.gantt.Gantt({
     projectStartDate: new Date('03/25/2025'),
     projectEndDate: new Date('09/01/2025')
 });
-ganttChart.appendTo('#Gantt');
-window.getConstraintText = function (value) {
-    var map = {
-        0: 'As Soon As Possible',
-        1: 'As Late As Possible',
-        2: 'Must Start On',
-        3: 'Must Finish On',
-        4: 'Start No Earlier Than',
-        5: 'Start No Later Than',
-        6: 'Finish No Earlier Than',
-        7: 'Finish No Later Than'
-    };
-    return map[value];
-};
-
-
-
-
+ganttChart.appendTo('#Gantt');
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.ts b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.ts
index e2bf33f22..f3b183b7d 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.ts
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/index.ts
@@ -5,7 +5,19 @@ import {  Gantt, Edit, Selection, Toolbar, DayMarkers } from '@syncfusion/ej2-ga
 import { constraintData } from 'datasource.ts';
 Gantt.Inject(Edit, Selection, Toolbar, DayMarkers);
 
-
+(window as any).getConstraintText = function (value: number): string {
+    const map: { [key: number]: string } = {
+        0: 'As Soon As Possible',
+        1: 'As Late As Possible',
+        2: 'Must Start On',
+        3: 'Must Finish On',
+        4: 'Start No Earlier Than',
+        5: 'Start No Later Than',
+        6: 'Finish No Earlier Than',
+        7: 'Finish No Later Than'
+    };
+    return map[value];
+};
 let gantt: Gantt = new Gantt({
     dataSource: constraintData,
     taskFields: {
@@ -73,19 +85,4 @@ let gantt: Gantt = new Gantt({
     projectStartDate: new Date('03/25/2025'),
     projectEndDate: new Date('09/01/2025')
 });
-gantt.appendTo('#Gantt');
-
-(window as any).getConstraintText = function (value: number): string {
-    const map: { [key: number]: string } = {
-        0: 'As Soon As Possible',
-        1: 'As Late As Possible',
-        2: 'Must Start On',
-        3: 'Must Finish On',
-        4: 'Start No Earlier Than',
-        5: 'Start No Later Than',
-        6: 'Finish No Earlier Than',
-        7: 'Finish No Later Than'
-    };
-    return map[value];
-};
-
+gantt.appendTo('#Gantt');
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/js/index.html b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/js/index.html
index 6e6978244..4dbd2c3d4 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/js/index.html
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/js/index.html
@@ -13,7 +13,13 @@
 </head>
 
 <body>
-       
+    <script type="text/x-template" id="rightLabel">
+        <div style="margin-top=-7px;">
+           <div id = "rightLabel">
+             ${getConstraintText(ganttProperties.constraintType)}
+           </div>
+        </div>
+    </script>
     
     <div id="container">
         <div id="Gantt"></div>        
@@ -27,11 +33,4 @@
 }   
       </script>
 <script src="index.js" type="text/javascript"></script>
-<script type="text/x-template" id="rightLabel">
-    <div style="margin-top=-7px;">
-       <div id = "rightLabel">
-         ${getConstraintText(ganttProperties.constraintType)}
-       </div>
-    </div>
-</script>
 </body></html>
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/ts/index.html b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/ts/index.html
index 8bfdf2d9c..a1722248e 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs1/ts/index.html
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs1/ts/index.html
@@ -14,17 +14,16 @@
 </head>
 
 <body>
-
+    <script type="text/x-template" id="rightLabel">
+        <div style="margin-top:-7px;">
+           <div id = "rightLabel">
+             ${getConstraintText(ganttProperties.constraintType)}
+           </div>
+        </div>
+    </script>
     <div id='loader'>Loading....</div>
     <div id='container'>
         <div id='Gantt'></div>
-        <script type="text/x-template" id="rightLabel">
-            <div style="margin-top:-7px;">
-               <div id = "rightLabel">
-                 ${getConstraintText(ganttProperties.constraintType)}
-               </div>
-            </div>
-        </script>
     </div>
 </body>
 
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.js b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.js
index ef8a3dcc5..a382b8e7e 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.js
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.js
@@ -2,6 +2,19 @@ ej.gantt.Gantt.Inject(ej.gantt.Selection,
     ej.gantt.Toolbar,
     ej.gantt.DayMarkers,
     ej.gantt.Edit);
+window.getConstraintText = function (value) {
+    var map = {
+        0: 'As Soon As Possible',
+        1: 'As Late As Possible',
+        2: 'Must Start On',
+        3: 'Must Finish On',
+        4: 'Start No Earlier Than',
+        5: 'Start No Later Than',
+        6: 'Finish No Earlier Than',
+        7: 'Finish No Later Than'
+    };
+    return map[value];
+};
 var ganttChart = new ej.gantt.Gantt({
     dataSource: constraintData,
     taskFields: {
@@ -74,21 +87,4 @@ var ganttChart = new ej.gantt.Gantt({
     projectStartDate: new Date('03/25/2025'),
     projectEndDate: new Date('09/01/2025')
 });
-ganttChart.appendTo('#Gantt');
-window.getConstraintText = function (value) {
-    var map = {
-        0: 'As Soon As Possible',
-        1: 'As Late As Possible',
-        2: 'Must Start On',
-        3: 'Must Finish On',
-        4: 'Start No Earlier Than',
-        5: 'Start No Later Than',
-        6: 'Finish No Earlier Than',
-        7: 'Finish No Later Than'
-    };
-    return map[value];
-};
-
-
-
-
+ganttChart.appendTo('#Gantt');
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.ts b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.ts
index 00f26e3c9..3c628091a 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.ts
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/index.ts
@@ -6,6 +6,19 @@ import { constraintData } from 'datasource.ts';
 Gantt.Inject(Edit, Selection, Toolbar, DayMarkers);
 
 
+(window as any).getConstraintText = function (value: number): string {
+    const map: { [key: number]: string } = {
+        0: 'As Soon As Possible',
+        1: 'As Late As Possible',
+        2: 'Must Start On',
+        3: 'Must Finish On',
+        4: 'Start No Earlier Than',
+        5: 'Start No Later Than',
+        6: 'Finish No Earlier Than',
+        7: 'Finish No Later Than'
+    };
+    return map[value];
+};
 let gantt: Gantt = new Gantt({
     dataSource: constraintData,
     taskFields: {
@@ -79,18 +92,3 @@ let gantt: Gantt = new Gantt({
     projectEndDate: new Date('09/01/2025')
 });
 gantt.appendTo('#Gantt');
-
-(window as any).getConstraintText = function (value: number): string {
-    const map: { [key: number]: string } = {
-        0: 'As Soon As Possible',
-        1: 'As Late As Possible',
-        2: 'Must Start On',
-        3: 'Must Finish On',
-        4: 'Start No Earlier Than',
-        5: 'Start No Later Than',
-        6: 'Finish No Earlier Than',
-        7: 'Finish No Later Than'
-    };
-    return map[value];
-};
-
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/js/index.html b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/js/index.html
index 6e6978244..cdb81193c 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/js/index.html
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/js/index.html
@@ -14,7 +14,13 @@
 
 <body>
        
-    
+    <script type="text/x-template" id="rightLabel">
+        <div style="margin-top=-7px;">
+           <div id = "rightLabel">
+             ${getConstraintText(ganttProperties.constraintType)}
+           </div>
+        </div>
+    </script>
     <div id="container">
         <div id="Gantt"></div>        
     </div>
@@ -27,11 +33,4 @@
 }   
       </script>
 <script src="index.js" type="text/javascript"></script>
-<script type="text/x-template" id="rightLabel">
-    <div style="margin-top=-7px;">
-       <div id = "rightLabel">
-         ${getConstraintText(ganttProperties.constraintType)}
-       </div>
-    </div>
-</script>
 </body></html>
\ No newline at end of file
diff --git a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/ts/index.html b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/ts/index.html
index 8bfdf2d9c..a1722248e 100644
--- a/ej2-javascript/code-snippet/gantt/task-constraints-cs2/ts/index.html
+++ b/ej2-javascript/code-snippet/gantt/task-constraints-cs2/ts/index.html
@@ -14,17 +14,16 @@
 </head>
 
 <body>
-
+    <script type="text/x-template" id="rightLabel">
+        <div style="margin-top:-7px;">
+           <div id = "rightLabel">
+             ${getConstraintText(ganttProperties.constraintType)}
+           </div>
+        </div>
+    </script>
     <div id='loader'>Loading....</div>
     <div id='container'>
         <div id='Gantt'></div>
-        <script type="text/x-template" id="rightLabel">
-            <div style="margin-top:-7px;">
-               <div id = "rightLabel">
-                 ${getConstraintText(ganttProperties.constraintType)}
-               </div>
-            </div>
-        </script>
     </div>
 </body>
 
diff --git a/ej2-javascript/code-snippet/gantt/wbscolumn-cs2/index.js b/ej2-javascript/code-snippet/gantt/wbscolumn-cs2/index.js
index 324a067af..7fab28530 100644
--- a/ej2-javascript/code-snippet/gantt/wbscolumn-cs2/index.js
+++ b/ej2-javascript/code-snippet/gantt/wbscolumn-cs2/index.js
@@ -4,6 +4,7 @@ ej.gantt.Gantt.Inject(ej.gantt.Selection,
     ej.gantt.Edit,
     ej.gantt.Filter,
     ej.gantt.Sort,
+    ej.gantt.RowDD,
     ej.gantt.ContextMenu);
 
 
@@ -13,6 +14,7 @@ var ganttChart = new ej.gantt.Gantt({
     allowSorting: true,
     enableContextMenu: true,
     enableWBS: true,
+    allowRowDragAndDrop: true,
     dataBound: function () {
         if (isRowDropped) {
             ganttChart.enableAutoWbsUpdate = false;
@@ -100,4 +102,3 @@ var ganttChart = new ej.gantt.Gantt({
     projectEndDate: new Date('05/30/2024'),
 });
 ganttChart.appendTo('#Gantt');
-
diff --git a/ej2-javascript/gantt/columns/wbs-column.md b/ej2-javascript/gantt/columns/wbs-column.md
index 9b0a9645a..f4200c96b 100644
--- a/ej2-javascript/gantt/columns/wbs-column.md
+++ b/ej2-javascript/gantt/columns/wbs-column.md
@@ -26,12 +26,12 @@ The Work Breakdown Structure (WBS) organizes project tasks hierarchically in the
 {% highlight ts tabtitle="index.ts" %}
 {% include code-snippet/gantt/wbscolumn-cs1/index.ts %}
 {% endhighlight %}
-{% highlight ts tabtitle="index.html" %}
+{% highlight html tabtitle="index.html" %}
 {% include code-snippet/gantt/wbscolumn-cs1/index.html %}
 {% endhighlight %}
 {% endtabs %}
 
-{% previewsample "page.domainurl/samples/gantt/wbscolumn-cs1" %}
+{% previewsample "page.domainurl/code-snippet/gantt/wbscolumn-cs1" %}
 
 {% elsif page.publishingplatform == "javascript" %}
 
@@ -62,12 +62,12 @@ In the following example, WBS auto-update is enabled only during the **row drag
 {% highlight ts tabtitle="index.ts" %}
 {% include code-snippet/gantt/wbscolumn-cs2/index.ts %}
 {% endhighlight %}
-{% highlight ts tabtitle="index.html" %}
+{% highlight html tabtitle="index.html" %}
 {% include code-snippet/gantt/wbscolumn-cs2/index.html %}
 {% endhighlight %}
 {% endtabs %}
 
-{% previewsample "page.domainurl/samples/gantt/wbscolumn-cs2" %}
+{% previewsample "page.domainurl/code-snippet/gantt/wbscolumn-cs2" %}
 
 {% elsif page.publishingplatform == "javascript" %}
 
diff --git a/ej2-javascript/gantt/task-constraints.md b/ej2-javascript/gantt/task-constraints.md
index 1109ba3b8..1806ad5a1 100644
--- a/ej2-javascript/gantt/task-constraints.md
+++ b/ej2-javascript/gantt/task-constraints.md
@@ -87,12 +87,12 @@ This task is constrained to must start on July 1, 2025.
 {% include code-snippet/gantt/task-constraints-cs1/index.ts %}
 {% endhighlight %}
 
-{% highlight ts tabtitle="index.html" %}
+{% highlight html tabtitle="index.html" %}
 {% include code-snippet/gantt/task-constraints-cs1/index.html %}
 {% endhighlight %}
 {% endtabs %}
 
-{% previewsample "page.domainurl/samples/gantt/task-constraints-cs1" %}
+{% previewsample "page.domainurl/code-snippet/gantt/task-constraints-cs1" %}
 
 {% elsif page.publishingplatform == "javascript" %}
 
@@ -159,12 +159,12 @@ In the following example, we have disabled the MustStartOn violation popup by se
 {% include code-snippet/gantt/task-constraints-cs2/index.ts %}
 {% endhighlight %}
 
-{% highlight ts tabtitle="index.html" %}
+{% highlight html tabtitle="index.html" %}
 {% include code-snippet/gantt/task-constraints-cs2/index.html %}
 {% endhighlight %}
 {% endtabs %}
 
-{% previewsample "page.domainurl/samples/gantt/task-constraints-cs2" %}
+{% previewsample "page.domainurl/code-snippet/gantt/task-constraints-cs2" %}
 
 {% elsif page.publishingplatform == "javascript" %}
 
