@@ -21,7 +28,7 @@
-
+
@@ -33,7 +40,7 @@
-
+
@@ -102,12 +109,12 @@
#control_dash {
display: block;
- width:60%;
- float:left;
- }
+ width: 60%;
+ float: left;
+ }
#api_property {
display: inline-block;
- margin:30px;
+ margin: 30px;
}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/CSHTML.cs
new file mode 100644
index 0000000000..d89330ddc4
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/CSHTML.cs
@@ -0,0 +1,4 @@
+public class cellSpacingModel
+{
+ public double[] cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/tagHelper
index 26cce8adb1..2ef6d5d1c7 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/cell-spacing/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ...
+ cellSpacingModel modelValue = new cellSpacingModel();
+ modelValue.cellSpacing = new double[] { 20, 20 };
+}
+
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/CSHTML.cs
new file mode 100644
index 0000000000..bdf391e654
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/CSHTML.cs
@@ -0,0 +1,4 @@
+ public class panelCellSpacingModel
+ {
+ public double[]? cellSpacing { get; set; }
+ }
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/tagHelper
index 4efb47ab6c..9b655bb943 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/content-panel/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ...
+ panelCellSpacingModel modelValue = new panelCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
+
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/CSHTML.cs
new file mode 100644
index 0000000000..85c1596770
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/CSHTML.cs
@@ -0,0 +1,4 @@
+public class ddCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/tagHelper
index 0f687c4818..e0bac3cf55 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/disable-dragging/tagHelper
@@ -1,7 +1,11 @@
-@model WebApplication.Controllers.HomeController.spacingModel
+@{
+ ...
+ ddCellSpacingModel modelValue = new ddCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
-
+
@@ -29,4 +33,4 @@
text-align: center;
line-height: 90px;
}
-
\ No newline at end of file
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/CSHTML.cs
new file mode 100644
index 0000000000..85c1596770
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/CSHTML.cs
@@ -0,0 +1,4 @@
+public class ddCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/tagHelper
index d5e34c240b..83eff18eb3 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/drag-and-drop/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ...
+ ddCellSpacingModel modelValue = new ddCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
+
+
-
+
@@ -21,18 +28,18 @@
\ No newline at end of file
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/CSHTML.cs
new file mode 100644
index 0000000000..e8949d6e67
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/CSHTML.cs
@@ -0,0 +1,21 @@
+public class componentSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
+public class ChartData
+{
+ public string? month;
+ public double sales;
+}
+public class LineData
+{
+ public double x;
+ public double y;
+}
+
+public class PieData
+{
+ public string x;
+ public double y;
+ public string? text;
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/tagHelper
index 8748005581..6e4e91b18d 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/dragging-handler/tagHelper
@@ -1,6 +1,48 @@
+@{
+ ...
+ componentSpacingModel modelValue = new componentSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+
+ List chartData = new List
+ {
+ new ChartData { month = "Jan", sales = 35, },
+ new ChartData { month = "Feb", sales = 28, },
+ new ChartData { month = "Mar", sales = 34, },
+ new ChartData { month = "Apr", sales = 32, },
+ new ChartData { month = "May", sales = 40, },
+ new ChartData { month = "Jun", sales = 32, },
+ new ChartData { month = "Jul", sales = 35, },
+ new ChartData { month = "Aug", sales = 55, },
+ new ChartData { month = "Sep", sales = 38, },
+ new ChartData { month = "Oct", sales = 30, },
+ new ChartData { month = "Nov", sales = 25, },
+ new ChartData { month = "Dec", sales = 32, }
+ };
+
+ List lineData = new List
+ {
+ new LineData { x = 2013, y = 28, },
+ new LineData { x = 2014, y = 25, },
+ new LineData { x = 2015, y = 26, },
+ new LineData { x = 2016, y = 27, },
+ new LineData { x = 2017, y = 32, },
+ new LineData { x = 2018, y = 35, }
+ };
+
+ List pieData1 = new List
+ {
+ new PieData { x = "Chrome", y = 37, text = "37%", },
+ new PieData { x = "UC Browser", y = 17, text = "17%", },
+ new PieData { x = "iPhone", y = 19, text = "19%", },
+ new PieData { x = "Others", y = 4, text = "4%", },
+ new PieData { x = "Opera", y = 11, text = "11%", },
+ new PieData { x = "Android", y = 12, text = "12%", }
+ };
+}
+
-
+
@@ -17,7 +59,7 @@
-
+
@@ -29,7 +71,7 @@
-
+
@@ -43,7 +85,7 @@
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/CSHTML.cs
new file mode 100644
index 0000000000..611ee0f9fd
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/CSHTML.cs
@@ -0,0 +1,5 @@
+public class floatingSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
+
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/tagHelper
index 819f2f22e8..5ba87fae1d 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/floating-panels/tagHelper
@@ -1,11 +1,18 @@
+
+@{
+ ....
+ floatingSpacingModel modelValue = new floatingSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
+
-
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/CSHTML.cs
new file mode 100644
index 0000000000..d89330ddc4
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/CSHTML.cs
@@ -0,0 +1,4 @@
+public class cellSpacingModel
+{
+ public double[] cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/tagHelper
index 5430e4586c..f97ed74bf0 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/graphical-representation/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ...
+ cellSpacingModel modelValue = new cellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
+
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/CSHTML.cs
new file mode 100644
index 0000000000..432efe815c
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/CSHTML.cs
@@ -0,0 +1,5 @@
+public class cellSpacingModel
+{
+ public double[] cellSpacing { get; set; }
+ public double aspectRatio { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/tagHelper
index 2d9d77c3f7..6c7b82ef6b 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/modifying-cell-size/tagHelper
@@ -1,6 +1,14 @@
+@{
+ ...
+ cellSpacingModel modelValue = new cellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+ modelValue.aspectRatio = 100 / 50;
+}
+
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/CSHTML.cs
new file mode 100644
index 0000000000..85c1596770
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/CSHTML.cs
@@ -0,0 +1,4 @@
+public class ddCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/tagHelper
index 4999ab9b29..98d8d5b494 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/moving/tagHelper
@@ -1,7 +1,11 @@
-@model WebApplication.Controllers.HomeController.spacingModel
+@{
+ ...
+ ddCellSpacingModel modelValue = new ddCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
-
+
@@ -21,14 +25,14 @@
\ No newline at end of file
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/CSHTML.cs
new file mode 100644
index 0000000000..85216ca578
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/CSHTML.cs
@@ -0,0 +1,4 @@
+public class panelCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/tagHelper
index 2d60e2cace..86682d5f18 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-position/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ..
+ panelCellSpacingModel modelValue = new panelCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 20, 20 };
+}
+
+
-
+
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/CSHTML.cs
new file mode 100644
index 0000000000..85216ca578
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/CSHTML.cs
@@ -0,0 +1,4 @@
+public class panelCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/tagHelper
index 8972fe9c3c..2c8f1fc015 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/panel-size/tagHelper
@@ -1,6 +1,13 @@
+@{
+ ...
+ panelCellSpacingModel modelValue = new panelCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 20, 20 };
+}
+
+
-
+
@@ -30,4 +37,4 @@
text-align: center;
line-height: 90px;
}
-
+
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/CSHTML.cs
new file mode 100644
index 0000000000..e8949d6e67
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/CSHTML.cs
@@ -0,0 +1,21 @@
+public class componentSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
+public class ChartData
+{
+ public string? month;
+ public double sales;
+}
+public class LineData
+{
+ public double x;
+ public double y;
+}
+
+public class PieData
+{
+ public string x;
+ public double y;
+ public string? text;
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/tagHelper
index 736e9fbf24..f75f9a68c2 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/placing-content/tagHelper
@@ -1,6 +1,49 @@
+@{
+ ...
+ componentSpacingModel modelValue = new componentSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+
+ List chartData = new List
+ {
+ new ChartData { month = "Jan", sales = 35, },
+ new ChartData { month = "Feb", sales = 28, },
+ new ChartData { month = "Mar", sales = 34, },
+ new ChartData { month = "Apr", sales = 32, },
+ new ChartData { month = "May", sales = 40, },
+ new ChartData { month = "Jun", sales = 32, },
+ new ChartData { month = "Jul", sales = 35, },
+ new ChartData { month = "Aug", sales = 55, },
+ new ChartData { month = "Sep", sales = 38, },
+ new ChartData { month = "Oct", sales = 30, },
+ new ChartData { month = "Nov", sales = 25, },
+ new ChartData { month = "Dec", sales = 32, }
+ };
+
+ List lineData = new List
+ {
+ new LineData { x = 2013, y = 28, },
+ new LineData { x = 2014, y = 25, },
+ new LineData { x = 2015, y = 26, },
+ new LineData { x = 2016, y = 27, },
+ new LineData { x = 2017, y = 32, },
+ new LineData { x = 2018, y = 35, }
+ };
+
+ List pieData1 = new List
+ {
+ new PieData { x = "Chrome", y = 37, text = "37%", },
+ new PieData { x = "UC Browser", y = 17, text = "17%", },
+ new PieData { x = "iPhone", y = 19, text = "19%", },
+ new PieData { x = "Others", y = 4, text = "4%", },
+ new PieData { x = "Opera", y = 11, text = "11%", },
+ new PieData { x = "Android", y = 12, text = "12%", }
+ };
+}
+
+
-
+
@@ -12,15 +55,15 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -36,19 +79,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -64,15 +107,15 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -129,9 +172,9 @@
height: 30px
}
- .e-dashboard-layout.e-control .e-panel .e-panel-header div {
- text-align: center;
- }
+ .e-dashboard-layout.e-control .e-panel .e-panel-header div {
+ text-align: center;
+ }
.header {
padding: 5px;
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/CSHTML.cs
new file mode 100644
index 0000000000..85c1596770
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/CSHTML.cs
@@ -0,0 +1,4 @@
+public class ddCellSpacingModel
+{
+ public double[]? cellSpacing { get; set; }
+}
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/tagHelper b/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/tagHelper
index ebc50986f9..982df4bb71 100644
--- a/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/tagHelper
+++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/resize-panel/tagHelper
@@ -1,7 +1,11 @@
-@model WebApplication.Controllers.HomeController.spacingModel
+@{
+ ...
+ ddCellSpacingModel modelValue = new ddCellSpacingModel();
+ modelValue.cellSpacing = new double[] { 10, 10 };
+}
-
+
@@ -21,12 +25,12 @@