From 73ba7d59e4512ca5ba292608d1bc108dfdc8c79f Mon Sep 17 00:00:00 2001
From: ponselvajeganathan
<68591831+ponselvajeganathan@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:19:39 +0530
Subject: [PATCH 1/4] Update SyncfusionAngularASPNETMVC.csproj
---
Complex-databinding/SyncfusionAngularASPNETMVC.csproj | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Complex-databinding/SyncfusionAngularASPNETMVC.csproj b/Complex-databinding/SyncfusionAngularASPNETMVC.csproj
index 0439ead..1597ebb 100644
--- a/Complex-databinding/SyncfusionAngularASPNETMVC.csproj
+++ b/Complex-databinding/SyncfusionAngularASPNETMVC.csproj
@@ -131,8 +131,7 @@
Global.asax
-
-
+
@@ -325,4 +324,4 @@
-->
-
\ No newline at end of file
+
From 4447fa4a99aad6b87246c9c99a346d2909af3f8e Mon Sep 17 00:00:00 2001
From: ponselvajeganathan
<68591831+ponselvajeganathan@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:20:48 +0530
Subject: [PATCH 2/4] Update app.module.ts
---
Complex-databinding/ClientApp/src/app/app.module.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Complex-databinding/ClientApp/src/app/app.module.ts b/Complex-databinding/ClientApp/src/app/app.module.ts
index dc8f694..cd02746 100644
--- a/Complex-databinding/ClientApp/src/app/app.module.ts
+++ b/Complex-databinding/ClientApp/src/app/app.module.ts
@@ -3,7 +3,7 @@ import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { GridModule } from '@syncfusion/ej2-angular-grids';
-import { TreeGridModule } from '@syncfusion/ej2-angular-treegrid';
+import { TreeGridModule, PageService } from '@syncfusion/ej2-angular-treegrid';
@NgModule({
declarations: [
@@ -13,7 +13,7 @@ import { TreeGridModule } from '@syncfusion/ej2-angular-treegrid';
BrowserModule,
GridModule, TreeGridModule
],
- providers: [],
+ providers: [PageService],
bootstrap: [AppComponent]
})
export class AppModule { }
From 23eae44ce5e46a4f4a15641b1d26fe00ea489f05 Mon Sep 17 00:00:00 2001
From: ponselvajeganathan
<68591831+ponselvajeganathan@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:22:16 +0530
Subject: [PATCH 3/4] Update app.component.ts
---
Complex-databinding/ClientApp/src/app/app.component.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Complex-databinding/ClientApp/src/app/app.component.ts b/Complex-databinding/ClientApp/src/app/app.component.ts
index 970ba18..46d0c6b 100644
--- a/Complex-databinding/ClientApp/src/app/app.component.ts
+++ b/Complex-databinding/ClientApp/src/app/app.component.ts
@@ -4,7 +4,7 @@ import { DataManager, Query, UrlAdaptor } from '@syncfusion/ej2-data';
@Component({
selector: 'app-root',
template: `
-
+
@@ -21,5 +21,5 @@ export class AppComponent {
url: "Home/Datasource",
});
public query?: Query = new Query().expand('Tasks');
-
+ public pagesettings = { pageSize: 12, pageSizeMode: 'Root' };
}
From 4d1485329a4b33ce09233ecb4660a36107abb385 Mon Sep 17 00:00:00 2001
From: ponselvajeganathan
<68591831+ponselvajeganathan@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:23:10 +0530
Subject: [PATCH 4/4] Update HomeController.cs
---
Complex-databinding/Controllers/HomeController.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Complex-databinding/Controllers/HomeController.cs b/Complex-databinding/Controllers/HomeController.cs
index 2a0e9ff..67de345 100644
--- a/Complex-databinding/Controllers/HomeController.cs
+++ b/Complex-databinding/Controllers/HomeController.cs
@@ -81,20 +81,20 @@ public static List GetTree()
if (tree.Count == 0)
{
int root = 0;
- for (var t = 1; t <= 5; t++)
+ for (var t = 1; t <= 25; t++)
{
Random ran = new Random();
root++;
int rootItem = root;
- tree.Add(new TreeData() { TaskID = rootItem, TaskName = "Parent task " + rootItem.ToString(), isParent = true, IsExpanded = true, ParentValue = null, Duration = ran.Next(1, 50), Tasks = new TaskDetails { Name = "Parent" } });
+ tree.Add(new TreeData() { TaskID = rootItem, TaskName = "Parent task " + rootItem.ToString(), isParent = true, IsExpanded = true, ParentValue = null, Duration = ran.Next(1, 50), Tasks = new TaskDetails { Name = "Parent"+ rootItem.ToString() } });
int parent = root;
int subparent = root;
for (var c = 0; c < 3; c++)
{
root++;
int childID = root;
- tree.Add(new TreeData() { TaskID = childID, TaskName = "sub Child task " + childID.ToString(), ParentValue = subparent, Duration = ran.Next(1, 50), Tasks = new TaskDetails { Name = "Sub child" } });
+ tree.Add(new TreeData() { TaskID = childID, TaskName = "sub Child task " + childID.ToString(), ParentValue = subparent, Duration = ran.Next(1, 50), Tasks = new TaskDetails { Name = "Sub child" + childID.ToString()} });
}
}
@@ -104,4 +104,4 @@ public static List GetTree()
}
}
-}
\ No newline at end of file
+}