Skip to content

Commit 5a44537

Browse files
1008378: added code changes.
1 parent f75aa11 commit 5a44537

6 files changed

Lines changed: 14 additions & 92 deletions

File tree

Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper.Client/Gantt_Dapper.Client.csproj renamed to Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper.Client/GanttDapper.Client.csproj

File renamed without changes.

Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper.Client/Pages/Home.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@using Syncfusion.Blazor.Data
66
@using Syncfusion.Blazor
77

8-
<SfGantt TValue="TaskData" Height="600px" AllowFiltering="true" AllowSorting="true" TreeColumnIndex="1" EnableContextMenu="true"
8+
<SfGantt TValue="TaskData" Height="600px" AllowFiltering="true" AllowSorting="true" TreeColumnIndex="1"
99
Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel", "Search" })">
1010

1111
<SfDataManager Url="/api/Gantt"

Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper.Client/_Imports.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
@using static Microsoft.AspNetCore.Components.Web.RenderMode
77
@using Microsoft.AspNetCore.Components.Web.Virtualization
88
@using Microsoft.JSInterop
9-
@using Gantt_Dapper.Client
9+
@using GanttDapper.Client

Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper/GanttDapper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\..\..\..\..\..\..\..\Blazor-UG-Examples\Gantt\IntegrationPage\Binding Dapper using Url Adaptor\Blazor Web App\Gantt_Dapper\Gantt_Dapper.Client\GanttDapper.Client.csproj" />
17+
<ProjectReference Include="..\GanttDapper.Client\GanttDapper.Client.csproj" />
1818
</ItemGroup>
1919

2020
</Project>

Gantt/IntegrationWithNet10/Binding Dapper using Url Adaptor/Blazor Web App/Gantt_Dapper/GanttDapper/Models/TaskData.cs

Lines changed: 0 additions & 88 deletions
This file was deleted.

Gantt/IntegrationWithNet10/Binding Mysql DB using Custom Adaptor/Blazor Web App/GanttMySQL/Components/Pages/Home.razor

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@inject TaskRepository TaskService
1010

11-
<SfGantt TValue="TaskDataModel" Height="500px" Width="100%" AllowSorting="true" AllowFiltering="true" EnableContextMenu="true"
11+
<SfGantt TValue="TaskDataModel" Height="500px" Width="100%" AllowSorting="true" AllowFiltering="true"
1212
Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel", "Search" })">
1313

1414
<SfDataManager AdaptorInstance="@typeof(CustomAdaptor)" Adaptor="Adaptors.CustomAdaptor"></SfDataManager>
@@ -73,6 +73,16 @@
7373
if (dm.Search != null && dm.Search.Count > 0)
7474
dataSource = DataOperations.PerformSearching(dataSource, dm.Search);
7575

76+
if (dm.Where != null && dm.Where.Count > 0)
77+
{
78+
// Filtering
79+
if (dm.Where[0].Field != null && dm.Where[0].Field == nameof(TaskDataModel.ParentId)) { }
80+
else
81+
{
82+
dataSource = DataOperations.PerformFiltering(dataSource, dm.Where, dm.Where[0].Operator);
83+
}
84+
}
85+
7686
// Sort
7787
if (dm.Sorted != null && dm.Sorted.Count > 0)
7888
dataSource = DataOperations.PerformSorting(dataSource, dm.Sorted);

0 commit comments

Comments
 (0)