Skip to content

Commit 017fdba

Browse files
Merge pull request #2 from Backiaraj/grid
Update the project
2 parents 31b258c + 80aa06b commit 017fdba

Some content is hidden

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

47 files changed

+533
-434
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<Router AppAssembly="@typeof(Program).Assembly">
1+
<Router AppAssembly="@typeof(App).Assembly">
22
<Found Context="routeData">
33
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
45
</Found>
56
<NotFound>
7+
<PageTitle>Not found</PageTitle>
68
<LayoutView Layout="@typeof(MainLayout)">
7-
<p>Sorry, there's nothing at this address.</p>
9+
<p role="alert">Sorry, there's nothing at this address.</p>
810
</LayoutView>
911
</NotFound>
1012
</Router>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.Blazor.Buttons" Version="23.1.38" />
11+
<PackageReference Include="Syncfusion.Blazor.Grid" Version="23.1.38" />
12+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="23.1.38" />
13+
</ItemGroup>
14+
15+
</Project>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29319.158
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33213.308
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ObservableCollection", "ObservableCollection\ObservableCollection.csproj", "{C138E7B4-2F55-4B66-A313-4E2672EBD9A7}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindWithObservableCollection", "BindWithObservableCollection.csproj", "{63C6027E-2E0C-49CF-B04D-7BFDE1F84BF5}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{C138E7B4-2F55-4B66-A313-4E2672EBD9A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{C138E7B4-2F55-4B66-A313-4E2672EBD9A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{C138E7B4-2F55-4B66-A313-4E2672EBD9A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{C138E7B4-2F55-4B66-A313-4E2672EBD9A7}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{63C6027E-2E0C-49CF-B04D-7BFDE1F84BF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{63C6027E-2E0C-49CF-B04D-7BFDE1F84BF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{63C6027E-2E0C-49CF-B04D-7BFDE1F84BF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{63C6027E-2E0C-49CF-B04D-7BFDE1F84BF5}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {873AB4BC-6C8D-4C3C-8CC6-25473F249D2D}
23+
SolutionGuid = {11A65A33-DB19-4054-B2F7-E6E6A8F0827B}
2424
EndGlobalSection
2525
EndGlobal
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
using System;
2-
3-
namespace ObservableCollection.Data
1+
namespace BindWithObservableCollection.Data
42
{
53
public class WeatherForecast
64
{
7-
public DateTime Date { get; set; }
5+
public DateOnly Date { get; set; }
86

97
public int TemperatureC { get; set; }
108

119
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
1210

13-
public string Summary { get; set; }
11+
public string? Summary { get; set; }
1412
}
15-
}
13+
}

Data/WeatherForecastService.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
namespace BindWithObservableCollection.Data
2+
{
3+
public class WeatherForecastService
4+
{
5+
private static readonly string[] Summaries = new[]
6+
{
7+
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
8+
};
9+
10+
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
11+
{
12+
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
13+
{
14+
Date = startDate.AddDays(index),
15+
TemperatureC = Random.Shared.Next(-20, 55),
16+
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
17+
}).ToArray());
18+
}
19+
}
20+
}

ObservableCollection/ObservableCollection/Data/WeatherForecastService.cs

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

ObservableCollection/ObservableCollection/ObservableCollection.csproj

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

ObservableCollection/ObservableCollection/Pages/Error.razor

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

ObservableCollection/ObservableCollection/Pages/_Host.cshtml

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

ObservableCollection/ObservableCollection/Program.cs

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

0 commit comments

Comments
 (0)