Skip to content

Commit d208702

Browse files
authored
Updated the sample with Sf changes.
1 parent 4b59ed5 commit d208702

File tree

5 files changed

+43
-31
lines changed

5 files changed

+43
-31
lines changed

GettingStarted.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

7-
<ItemGroup>
8-
<PackageReference Include="Syncfusion.EJ2.Blazor" Version="17.4.0.49" />
9-
</ItemGroup>
10-
117
</Project>

GettingStarted.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29806.167
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GettingStarted", "GettingStarted.csproj", "{4E77152F-7571-4AEF-A54A-B6828B6DF154}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{4E77152F-7571-4AEF-A54A-B6828B6DF154}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{4E77152F-7571-4AEF-A54A-B6828B6DF154}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{4E77152F-7571-4AEF-A54A-B6828B6DF154}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{4E77152F-7571-4AEF-A54A-B6828B6DF154}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {006C81AE-FA07-4F07-BB62-A6E9DF580A44}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Int64 x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/AutoNamingCompletedVersion/@EntryValue">2</s:Int64></wpf:ResourceDictionary>

Pages/Index.razor

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
@page "/"
22

3-
<EjsTreeGrid DataSource="@TreeData" IdMapping="TaskId" ParentIdMapping="ParentId" TreeColumnIndex="1"
4-
AllowPaging="true" AllowSorting="true" AllowFiltering="true">
5-
<TreeGridPageSettings PageSizeMode="PageSizeMode.Root" PageSize="2"></TreeGridPageSettings>
6-
<TreeGridSortSettings>
7-
<TreeGridSortColumns>
8-
<TreeGridSortColumn Field="Progress" Direction="Syncfusion.EJ2.Blazor.Grids.SortDirection.Descending"></TreeGridSortColumn>
9-
<TreeGridSortColumn Field="Duration" Direction="Syncfusion.EJ2.Blazor.Grids.SortDirection.Ascending"></TreeGridSortColumn>
10-
</TreeGridSortColumns>
11-
</TreeGridSortSettings>
3+
<SfTreeGrid DataSource="@TreeData" IdMapping="TaskId" ParentIdMapping="ParentId" TreeColumnIndex="1"
4+
AllowPaging="true" AllowSorting="true" AllowFiltering="true">
5+
<TreeGridPageSettings PageSizeMode="PageSizeMode.Root" PageSize="2"></TreeGridPageSettings>
6+
<TreeGridSortSettings>
7+
<TreeGridSortColumns>
8+
<TreeGridSortColumn Field="Progress" Direction="Syncfusion.Blazor.Grids.SortDirection.Descending"></TreeGridSortColumn>
9+
<TreeGridSortColumn Field="Duration" Direction="Syncfusion.Blazor.Grids.SortDirection.Ascending"></TreeGridSortColumn>
10+
</TreeGridSortColumns>
11+
</TreeGridSortSettings>
1212
<TreeGridColumns>
13-
<TreeGridColumn Field="TaskId" HeaderText="Task ID" Width="80" TextAlign="Syncfusion.EJ2.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
13+
<TreeGridColumn Field="TaskId" HeaderText="Task ID" Width="80" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
1414
<TreeGridColumn Field="TaskName" HeaderText="Task Name" Width="160"></TreeGridColumn>
15-
<TreeGridColumn Field="Duration" HeaderText="Duration" Width="100" TextAlign="Syncfusion.EJ2.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
16-
<TreeGridColumn Field="Progress" HeaderText="Progress" Width="100" TextAlign="Syncfusion.EJ2.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
15+
<TreeGridColumn Field="Duration" HeaderText="Duration" Width="100" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
16+
<TreeGridColumn Field="Progress" HeaderText="Progress" Width="100" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
1717
<TreeGridColumn Field="Priority" HeaderText="Priority" Width="80"></TreeGridColumn>
1818
</TreeGridColumns>
19-
</EjsTreeGrid>
19+
</SfTreeGrid>
2020

2121
@code{
2222

23-
public class BusinessObject{
23+
public class BusinessObject
24+
{
2425
public int TaskId { get; set; }
2526
public string TaskName { get; set; }
2627
public int Duration { get; set; }

Pages/_Host.cshtml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,7 @@
1414
<base href="~/" />
1515
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
1616
<link href="css/site.css" rel="stylesheet" />
17-
<link href="https://cdn.syncfusion.com/ej2/17.4.47/material.css" rel="stylesheet" />
18-
<script src="https://cdn.syncfusion.com/ej2/17.4.47/dist/ej2.min.js"></script>
19-
<script type="text/javascript">
20-
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
21-
document.write(
22-
'<script src="https://cdn.syncfusion.com/ej2/17.4.47/dist/ejs.interop-ie.min.js"><\/script>');
23-
document.write(
24-
'<script src="https://github.com/Daddoon/Blazor.Polyfill/releases/download/3.0.1/blazor.polyfill.min.js"><\/script>');
25-
} else {
26-
document.write(
27-
'<script src="https://cdn.syncfusion.com/ej2/17.4.47/dist/ejs.interop.min.js"><\/script>');
28-
}
29-
</script>
17+
<link href="_content/Syncfusion.Blazor/styles/material.css" rel="stylesheet" />
3018
</head>
3119
<body>
3220
<app>

0 commit comments

Comments
 (0)