Skip to content

Commit 0d54699

Browse files
Merge pull request #3076 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents 65656ee + 9993839 commit 0d54699

File tree

124 files changed

+2744
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+2744
-114
lines changed

ej2-asp-core-mvc/code-snippet/chart/dynamic-update/add-point/razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name("Users").
77
Width(2).
88
Marker(mr => mr.Visible(true).DataLabel(dl => dl.Visible(true).Position(Syncfusion.EJ2.Charts.LabelPosition.Top)
9-
.Font(font => font.FontWeight("600"))))
9+
.Font(font => font.FontWeight("600")))).
1010
DataSource(ViewBag.dataSource).
1111
Add();
1212
}).PrimaryXAxis(px => px.ValueType(Syncfusion.EJ2.Charts.ValueType.Category).EnableTrim(false).MajorGridLines(mg => mg.Width(0)).MajorTickLines(mt => mt.Width(0))

ej2-asp-core-mvc/code-snippet/chart/dynamic-update/remove-point/razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name("Users").
77
Width(2).
88
Marker(mr => mr.Visible(true).DataLabel(dl => dl.Visible(true).Position(Syncfusion.EJ2.Charts.LabelPosition.Top)
9-
.Font(font => font.FontWeight("600"))))
9+
.Font(font => font.FontWeight("600")))).
1010
DataSource(ViewBag.dataSource).
1111
Add();
1212
}).PrimaryXAxis(px => px.ValueType(Syncfusion.EJ2.Charts.ValueType.Category).EnableTrim(false).MajorGridLines(mg => mg.Width(0)).MajorTickLines(mt => mt.Width(0))
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
public IActionResult Index()
2+
{
3+
ViewBag.DataSource = ganttData();
4+
return View();
5+
}
6+
7+
public static List<GanttDataSource> ganttData()
8+
{
9+
List<GanttDataSource> GanttDataSourceCollection = new List<GanttDataSource>();
10+
11+
GanttDataSource Record1 = new GanttDataSource()
12+
{
13+
TaskId = 1,
14+
TaskName = "Project initiation",
15+
StartDate = new DateTime(2019, 04, 02),
16+
EndDate = new DateTime(2019, 04, 21),
17+
SubTasks = new List<GanttDataSource>()
18+
};
19+
GanttDataSource Child1 = new GanttDataSource()
20+
{
21+
TaskId = 2,
22+
TaskName = "Identify site location",
23+
StartDate = new DateTime(2019, 04, 02),
24+
Duration = 4,
25+
Progress = 50
26+
};
27+
GanttDataSource Child2 = new GanttDataSource()
28+
{
29+
TaskId = 3,
30+
TaskName = "Perform soil test",
31+
StartDate = new DateTime(2019, 04, 02),
32+
Duration = 4,
33+
Progress = 50
34+
};
35+
GanttDataSource Child3 = new GanttDataSource()
36+
{
37+
TaskId = 4,
38+
TaskName = "Soil test approval",
39+
StartDate = new DateTime(2019, 04, 02),
40+
Duration = 4,
41+
Progress = 50
42+
};
43+
Record1.SubTasks.Add(Child1);
44+
Record1.SubTasks.Add(Child2);
45+
Record1.SubTasks.Add(Child3);
46+
47+
GanttDataSource Record2 = new GanttDataSource()
48+
{
49+
TaskId = 5,
50+
TaskName = "Project estimation",
51+
StartDate = new DateTime(2019, 04, 02),
52+
EndDate = new DateTime(2019, 04, 21),
53+
SubTasks = new List<GanttDataSource>()
54+
};
55+
GanttDataSource Child4 = new GanttDataSource()
56+
{
57+
TaskId = 6,
58+
TaskName = "Develop floor plan for estimation",
59+
StartDate = new DateTime(2019, 04, 04),
60+
Duration = 3,
61+
Progress = 50
62+
};
63+
GanttDataSource Child5 = new GanttDataSource()
64+
{
65+
TaskId = 7,
66+
TaskName = "List materials",
67+
StartDate = new DateTime(2019, 04, 04),
68+
Duration = 3,
69+
Progress = 50
70+
};
71+
Record2.SubTasks.Add(Child4);
72+
Record2.SubTasks.Add(Child5);
73+
74+
GanttDataSourceCollection.Add(Record1);
75+
GanttDataSourceCollection.Add(Record2);
76+
77+
return GanttDataSourceCollection;
78+
}
79+
80+
public class GanttDataSource
81+
{
82+
public int TaskId { get; set; }
83+
public string TaskName { get; set; }
84+
public DateTime StartDate { get; set; }
85+
public DateTime EndDate { get; set; }
86+
public int? Duration { get; set; }
87+
public int Progress { get; set; }
88+
public List<GanttDataSource> SubTasks { get; set; }
89+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("450px").TaskFields(ts =>
2+
ts.Id("TaskId").Name("TaskName").StartDate("StartDate").ActionFailure("actionFailure").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")
3+
).Columns(col =>
4+
{
5+
col.Field("TaskName").HeaderText("Job Name").Width(250).Add();
6+
col.Field("StartDate").HeaderText("Start Date").Width(250).Add();
7+
col.Field("EndDate").HeaderText("End Date").Width(250).Add();
8+
col.Field("Duration").HeaderText("Duration").Width(250).Add();
9+
}).Render()
10+
< script >
11+
function actionFailure(args) {
12+
var gantt = document.getElementById("Gantt").ej2_instances[0];
13+
var span = document.createElement('span');
14+
gantt.element.parentNode.insertBefore(span, gantt.element);
15+
span.style.color = '#FF0000'
16+
span.innerHTML = args.error[0];
17+
}
18+
</ script >
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<ejs-gantt id='Gantt' dataSource="ViewBag.dataSource" height="450px">
2+
<e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"
3+
endDate="EndDate" duration="Duration" progress="Progress" child="SubTasks"
4+
actionFailure="actionFailure">
5+
</e-gantt-taskfields>
6+
<e-gantt-columns>
7+
<e-gantt-column field="TaskName" headerText="Job Name" width="250"></e-gantt-column>
8+
<e-gantt-column field="StartDate" headerText="StartDate"></e-gantt-column>
9+
<e-gantt-column field="EndDate" headerText="EndDate"></e-gantt-column>
10+
<e-gantt-column field="Duration" headerText="Duration"></e-gantt-column>
11+
</e-gantt-columns>
12+
</ejs-gantt>
13+
14+
<script>
15+
function actionFailure(e) {
16+
var span = document.createElement('span');
17+
this.element.parentNode.insertBefore(span, this.element);
18+
span.style.color = '#FF0000'
19+
span.innerHTML = e.error[0];
20+
}
21+
</script>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public ActionResult Arialabels()
2+
{
3+
string[] ariaLabels = {"First digit", "Second digit", "Third digit", "Fourth digit"};
4+
ViewBag.ariaLabels = ariaLabels;
5+
return View();
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").AriaLabels(ViewBag.ariaLabels).Render()
5+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
@{
4+
string[] ariaLabels = { "First digit", "Second digit", "Third digit", "Fourth digit" };
5+
}
6+
7+
<div id='container' style="width: 350px;">
8+
<ejs-otpinput id="otpInput" ariaLabels="ariaLabels"></ejs-otpinput>
9+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public ActionResult Htmlattributes()
2+
{
3+
Dictionary<string, object> htmlAttributes = new Dictionary<string, object>()
4+
{
5+
{ "title", "One-Time Password" }
6+
};
7+
ViewBag.htmlAttributes = htmlAttributes;
8+
return View();
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").HtmlAttributes(ViewBag.htmlAttributes).Render()
5+
</div>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
@{
4+
Dictionary<string, object> htmlAttribues = new Dictionary<string, object>()
5+
{
6+
{ "title", "One-Time Password" }
7+
};
8+
}
9+
10+
<div id='container' style="width: 350px;">
11+
<ejs-otpinput id="otpInput" htmlAttributes="htmlAttribues"></ejs-otpinput>
12+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").CssClass("e-success").Render()
5+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" cssClass="e-success"></ejs-otpinput>
5+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Disabled(true).Render()
5+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" disabled=true></ejs-otpinput>
5+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Length(5).Render()
5+
</div>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" length="5"></ejs-otpinput>
5+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Blur("Blur").Render()
5+
</div>
6+
7+
<script>
8+
function Blur(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" blur="blur"></ejs-otpinput>
5+
</div>
6+
7+
<script>
8+
function blur(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Created("Created").Render()
5+
</div>
6+
7+
<script>
8+
function Created(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" created="createdEvent"></ejs-otpinput>
5+
</div>
6+
7+
<script>
8+
function createdEvent() {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Focus("Focus").Render()
5+
</div>
6+
7+
<script>
8+
function Focus(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" focus="focus"></ejs-otpinput>
5+
</div>
6+
7+
<script>
8+
function focus(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult Default()
2+
{
3+
return View();
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
@Html.EJS().OtpInput("otpInput").Input("Input").Render()
5+
</div>
6+
7+
<script>
8+
function Input(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Inputs
2+
3+
<div id='container' style="width: 350px;">
4+
<ejs-otpinput id="otpInput" input="input"></ejs-otpinput>
5+
</div>
6+
7+
<script>
8+
function input(args) {
9+
// Here, you can customize your code.
10+
}
11+
</script>

0 commit comments

Comments
 (0)