Skip to content

Commit 92d5ad6

Browse files
Sample modified
1 parent ca098f0 commit 92d5ad6

File tree

83 files changed

+162
-133
lines changed

Some content is hidden

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

83 files changed

+162
-133
lines changed

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/ServerWASM with Per Page and Individual.Client.csproj

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

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.sln

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

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual/Components/Account/Pages/_Imports.razor

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

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual/Components/Pages/Home.razor

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

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/Pages/Auth.razor renamed to ServerWasm-PerPage-Individual/ServerWasm-PerPage-Individual.Client/Pages/Auth.razor

File renamed without changes.

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/Pages/Counter.razor renamed to ServerWasm-PerPage-Individual/ServerWasm-PerPage-Individual.Client/Pages/Counter.razor

File renamed without changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@page "/"
2+
@rendermode InteractiveAuto
3+
4+
@using Syncfusion.Blazor.Grids
5+
6+
<PageTitle>Home</PageTitle>
7+
8+
<SfGrid DataSource="@Orders" AllowPaging="true" AllowSorting="true" AllowFiltering="true" AllowGrouping="true" />
9+
10+
@code {
11+
public List<Order> Orders { get; set; }
12+
13+
protected override void OnInitialized()
14+
{
15+
Orders = Enumerable.Range(1, 50).Select(x => new Order()
16+
{
17+
OrderID = 0 + x,
18+
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
19+
}).ToList();
20+
}
21+
22+
public class Order
23+
{
24+
public int? OrderID { get; set; }
25+
public string CustomerID { get; set; }
26+
27+
}
28+
}

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/PersistentAuthenticationStateProvider.cs renamed to ServerWasm-PerPage-Individual/ServerWasm-PerPage-Individual.Client/PersistentAuthenticationStateProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Microsoft.AspNetCore.Components.Authorization;
33
using System.Security.Claims;
44

5-
namespace ServerWASM_with_Per_Page_and_Individual.Client
5+
namespace ServerWasm_PerPage_Individual.Client
66
{
77
// This is a client-side AuthenticationStateProvider that determines the user's authentication state by
88
// looking for data persisted in the page when it was rendered on the server. This authentication state will

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/Program.cs renamed to ServerWasm-PerPage-Individual/ServerWasm-PerPage-Individual.Client/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using Microsoft.AspNetCore.Components.Authorization;
22
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
3-
using ServerWASM_with_Per_Page_and_Individual.Client;
3+
using ServerWasm_PerPage_Individual.Client;
4+
using Syncfusion.Blazor;
45

56
var builder = WebAssemblyHostBuilder.CreateDefault(args);
67

8+
builder.Services.AddSyncfusionBlazor();
79
builder.Services.AddAuthorizationCore();
810
builder.Services.AddCascadingAuthenticationState();
911
builder.Services.AddSingleton<AuthenticationStateProvider, PersistentAuthenticationStateProvider>();

ServerWASM with Per Page and Individual/ServerWASM with Per Page and Individual.Client/RedirectToLogin.razor renamed to ServerWasm-PerPage-Individual/ServerWasm-PerPage-Individual.Client/RedirectToLogin.razor

File renamed without changes.

0 commit comments

Comments
 (0)