Skip to content

Commit 59f7b36

Browse files
Projects renamed using hyphens instead of space
1 parent 5b49ee4 commit 59f7b36

File tree

60 files changed

+235
-781
lines changed

Some content is hidden

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

60 files changed

+235
-781
lines changed

SSR-Global-Individual/Components/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<base href="/" />
88
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
99
<link rel="stylesheet" href="app.css" />
10-
@* <link rel="stylesheet" href="SSR with Global and Individual.styles.css" /> *@
10+
<link rel="stylesheet" href="SSR_with_Global_and_Individual.styles.css" />
1111
<link rel="icon" type="image/png" href="favicon.png" />
1212
<link rel="stylesheet" href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" />
1313
<HeadOutlet />
Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
@page "/"
2-
@using Syncfusion.Blazor.Grids
32

4-
<PageTitle>Home</PageTitle>
3+
<PageTitle>SSR-Global-Individual</PageTitle>
54

6-
<SfGrid DataSource="@Orders" AllowPaging="true" AllowSorting="true" AllowFiltering="true" AllowGrouping="true" />
5+
<SfGrid DataSource="@Orders">
6+
<GridColumns>
7+
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
8+
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="150"></GridColumn>
9+
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
10+
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
11+
</GridColumns>
12+
</SfGrid>
713

8-
@code {
14+
@code
15+
{
916
public List<Order> Orders { get; set; }
1017

1118
protected override void OnInitialized()
1219
{
13-
Orders = Enumerable.Range(1, 50).Select(x => new Order()
20+
Orders = Enumerable.Range(1, 10).Select(x => new Order()
1421
{
15-
OrderID = 0 + x,
22+
OrderID = 1000 + x,
1623
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
24+
Freight = 2.1 * x,
25+
OrderDate = DateTime.Now.AddDays(-x),
1726
}).ToList();
1827
}
1928

2029
public class Order
2130
{
2231
public int? OrderID { get; set; }
2332
public string CustomerID { get; set; }
24-
33+
public DateTime? OrderDate { get; set; }
34+
public double? Freight { get; set; }
2535
}
2636
}

SSR-Global-Individual/Components/_Imports.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
@using Microsoft.JSInterop
1010
@using SSR_with_Global_and_Individual
1111
@using SSR_with_Global_and_Individual.Components
12+
@using Syncfusion.Blazor
13+
@using Syncfusion.Blazor.Grids

SSR-Global-Individual/SSR with Global and Individual.csproj

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

SSR-Global-Individual/SSR with Global and Individual.sln

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

SSR-Global-None/Components/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<base href="/" />
88
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
99
<link rel="stylesheet" href="app.css" />
10-
@* <link rel="stylesheet" href="SSR with Global and None.styles.css" /> *@
10+
<link rel="stylesheet" href="SSR_with_Global_and_None.styles.css" />
1111
<link rel="icon" type="image/png" href="favicon.png" />
1212
<link rel="stylesheet" href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" />
1313
<HeadOutlet />
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
@page "/"
2-
@using Syncfusion.Blazor.Grids
32

4-
<PageTitle>Home</PageTitle>
3+
<PageTitle>SSR-Global-None</PageTitle>
54

6-
<SfGrid DataSource="@Orders" />
5+
<SfGrid DataSource="@Orders">
6+
<GridColumns>
7+
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
8+
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="150"></GridColumn>
9+
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
10+
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
11+
</GridColumns>
12+
</SfGrid>
713

8-
@code {
14+
@code
15+
{
916
public List<Order> Orders { get; set; }
1017

1118
protected override void OnInitialized()
1219
{
1320
Orders = Enumerable.Range(1, 10).Select(x => new Order()
1421
{
15-
OrderID = 0 + x,
22+
OrderID = 1000 + x,
1623
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
24+
Freight = 2.1 * x,
25+
OrderDate = DateTime.Now.AddDays(-x),
1726
}).ToList();
1827
}
1928

2029
public class Order
2130
{
2231
public int? OrderID { get; set; }
2332
public string CustomerID { get; set; }
24-
33+
public DateTime? OrderDate { get; set; }
34+
public double? Freight { get; set; }
2535
}
2636
}

SSR-Global-None/Components/_Imports.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
@using Microsoft.JSInterop
99
@using SSR_with_Global_and_None
1010
@using SSR_with_Global_and_None.Components
11+
@using Syncfusion.Blazor
12+
@using Syncfusion.Blazor.Grids

SSR-Global-None/SSR with Global and None.csproj

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

SSR-Global-None/SSR with Global and None.sln

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

0 commit comments

Comments
 (0)