Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions browser/IgBlazorSamples.Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@
<script src="sb/chip-styling.js"></script>
<script src="sb/chip-variants.js"></script>
<script src="sb/combo-templates.js"></script>
<script src="sb/query-builder-overview.js"></script>
<script src="sb/query-builder-template.js"></script>
<script src="sb/dock-manager-styling.js"></script>
<script src="sb/tile-manager-actions.js"></script>
<script src="sb/tile-manager-layout.js"></script>
Expand Down
8 changes: 3 additions & 5 deletions samples/grids/grid/column-selection-styles/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

This folder contains implementation of Blazor application with example of Column Selection Styles feature using [Grid](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.


<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
<!-- https://dl.infragistics.com/x/img/browsers -->
<a target="_blank" href="https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://dl.infragistics.com/x/img/browsers/button-docs.png"/>
</a>
Expand All @@ -30,11 +28,11 @@ This folder contains implementation of Blazor application with example of Column

- instal **.NET SDK** from this [website](https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install)

## Running App in Visual Studio 2019
## Running App in Visual Studio 2022

NOTE: VS 2019 has better code highlighting and error detection than VS Code does.
NOTE: VS 2022 has better code highlighting and error detection than VS Code does.

- open **Visual Studio 2019** as an administrator
- open **Visual Studio 2022** as an administrator

- open the **BlazorClientApp.sln** solution

Expand Down
22 changes: 10 additions & 12 deletions samples/grids/grid/remote-paging-data/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<!-- NOTE: do not change this file because it's auto re-generated from template: -->
<!-- https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext/templates/sample/ReadMe.md -->

This folder contains implementation of Blazor application with example of Remote Paging Hgrid feature using [Hierarchical Grid](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.

This folder contains implementation of Blazor application with example of Remote Paging Data feature using [Grid](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
<!-- https://static.infragistics.com/xplatform/images/browsers -->
<a target="_blank" href="https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-docs.png"/>
<img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://dl.infragistics.com/x/img/browsers/button-docs.png"/>
</a>
<a target="_blank" href="./App.razor" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="View Code" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-code.png"/>
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="View Code" src="https://dl.infragistics.com/x/img/browsers/button-code.png"/>
</a>
<a target="_blank" href="https://infragistics.com/blazor-client/samples/grids/hierarchical-grid/remote-paging-hgrid" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-run.png"/>
<a target="_blank" href="https://infragistics.com/blazor-client/samples/grids/grid/remote-paging-data" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-run.png"/>
</a>
<!-- <a target="_blank" href="https://codesandbox.io/s/github/IgniteUI/igniteui-blazor-examples/tree/master/samples/grids/hierarchical-grid/remote-paging-hgrid?fontsize=14&hidenavigation=1&theme=dark&view=preview&file=/src/App.razor" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-sandbox.png"/>
<!-- <a target="_blank" href="https://codesandbox.io/s/github/IgniteUI/igniteui-blazor-examples/tree/master/samples/grids/grid/remote-paging-data?fontsize=14&hidenavigation=1&theme=dark&view=preview&file=/src/App.razor" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-sandbox.png"/>
</a> -->
</body>
</html>
Expand All @@ -30,11 +28,11 @@ This folder contains implementation of Blazor application with example of Remote

- instal **.NET SDK** from this [website](https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install)

## Running App in Visual Studio 2019
## Running App in Visual Studio 2022

NOTE: VS 2019 has better code highlighting and error detection than VS Code does.
NOTE: VS 2022 has better code highlighting and error detection than VS Code does.

- open **Visual Studio 2019** as an administrator
- open **Visual Studio 2022** as an administrator

- open the **BlazorClientApp.sln** solution

Expand Down
2 changes: 1 addition & 1 deletion samples/grids/tree/styling/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- NOTE: do not change this file because it's auto re-generated from template: -->
<!-- https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext/templates/sample/ReadMe.md -->

This folder contains implementation of Blazor application with example of Styling Example feature using [Tree](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.
This folder contains implementation of Blazor application with example of Styling feature using [Tree](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
Expand Down
108 changes: 108 additions & 0 deletions samples/interactions/query-builder/overview/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
@using IgniteUI.Blazor.Controls
@inject IJSRuntime JS

<div class="container vertical">
<div class="options horizontal fill">
<IgbQueryBuilder @ref="queryBuilder"
Entities="Entities"
ExpressionTree="ExpressionTree"
ExpressionTreeChangeScript="WebQueryBuilderExpressionTreeChange">
</IgbQueryBuilder>
</div>

<div class="container vertical fill">
<IgbGrid @ref="grid"
Id="grid"
AutoGenerate="false"
Width="100%"
Height="420px">
<IgbColumn Field="orderId" DataType="GridColumnDataType.Number"></IgbColumn>
<IgbColumn Field="customerId" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="companyName" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="contactName" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="contactTitle" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="employeeId" DataType="GridColumnDataType.Number"></IgbColumn>
<IgbColumn Field="shipperId" DataType="GridColumnDataType.Number"></IgbColumn>
<IgbColumn Field="orderDate" DataType="GridColumnDataType.Date"></IgbColumn>
<IgbColumn Field="requiredDate" DataType="GridColumnDataType.Date"></IgbColumn>
<IgbColumn Field="shipVia" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="freight" DataType="GridColumnDataType.Number"></IgbColumn>
<IgbColumn Field="shipName" DataType="GridColumnDataType.String"></IgbColumn>
<IgbColumn Field="completed" DataType="GridColumnDataType.Boolean"></IgbColumn>
</IgbGrid>
</div>
</div>

@code {
private static readonly string[] InitialReturnFields =
[
"orderId",
"customerId",
"employeeId",
"shipperId",
"orderDate",
"requiredDate",
"shipVia",
"freight",
"shipName",
"completed"
];

private static readonly IgbFieldType[] CustomerFields =
[
new() { Field = "customerId", DataType = GridColumnDataType.String },
new() { Field = "companyName", DataType = GridColumnDataType.String },
new() { Field = "contactName", DataType = GridColumnDataType.String },
new() { Field = "contactTitle", DataType = GridColumnDataType.String }
];

private static readonly IgbFieldType[] OrderFields =
[
new() { Field = "orderId", DataType = GridColumnDataType.Number },
new() { Field = "customerId", DataType = GridColumnDataType.String },
new() { Field = "employeeId", DataType = GridColumnDataType.Number },
new() { Field = "shipperId", DataType = GridColumnDataType.Number },
new() { Field = "orderDate", DataType = GridColumnDataType.Date },
new() { Field = "requiredDate", DataType = GridColumnDataType.Date },
new() { Field = "shipVia", DataType = GridColumnDataType.String },
new() { Field = "freight", DataType = GridColumnDataType.Number },
new() { Field = "shipName", DataType = GridColumnDataType.String },
new() { Field = "completed", DataType = GridColumnDataType.Boolean }
];

private static readonly IgbEntityType[] Entities =
[
new() { Name = "Customers", Fields = CustomerFields },
new() { Name = "Orders", Fields = OrderFields }
];

private static readonly IgbExpressionTree ExpressionTree = new()
{
FilteringOperands = [],
Operator = FilteringLogic.And,
Entity = "Orders",
ReturnFields = InitialReturnFields
};

private IgbQueryBuilder queryBuilder;
private IgbGrid grid;

protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (!firstRender || queryBuilder is null || grid is null)
{
return;
}

await queryBuilder.EnsureReady();
await grid.EnsureReady();

await JS.InvokeVoidAsync("queryBuilderOverview.loadInitialData", new
{
filteringOperands = Array.Empty<object>(),
@operator = 0,
entity = "Orders",
returnFields = InitialReturnFields
});
}
}
25 changes: 25 additions & 0 deletions samples/interactions/query-builder/overview/BlazorClientApp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<AssemblyName>Infragistics.Samples</AssemblyName>
<RootNamespace>Infragistics.Samples</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702,IDE0028,BL0005,0219,CS1998</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="IgniteUI.Blazor.Trial" Version="25.2.83" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.1" />
<PackageReference Include="System.Net.Http.Json" Version="10.0.1" />
</ItemGroup>

<ItemGroup>
<Folder Include="Services\" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions samples/interactions/query-builder/overview/BlazorClientApp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18
VisualStudioVersion = 18.2.11415.280 d18.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorClientApp", "BlazorClientApp.csproj", "{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FC52AAC8-4488-40AE-9621-75F6BA744B18}
EndGlobalSection
EndGlobal
30 changes: 30 additions & 0 deletions samples/interactions/query-builder/overview/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;

// required for registering IgniteUIBlazor
using IgniteUI.Blazor.Controls;

namespace Infragistics.Samples
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

// registering Infragistics Blazor
builder.Services.AddIgniteUIBlazor(
typeof(IgbQueryBuilderModule),
typeof(IgbGridModule)
);

await builder.Build().RunAsync();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4200",
"sslPort": 44385
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"BlazorClientApp": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:4200"
}
}
}
68 changes: 68 additions & 0 deletions samples/interactions/query-builder/overview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!-- NOTE: do not change this file because it's auto re-generated from template: -->
<!-- https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext/templates/sample/ReadMe.md -->

This folder contains implementation of Blazor application with example of Overview feature using [Query Builder](https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html) component.

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
<a target="_blank" href="https://www.infragistics.com/products/ignite-ui-blazor/blazor/components/general-getting-started.html" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://dl.infragistics.com/x/img/browsers/button-docs.png"/>
</a>
<a target="_blank" href="./App.razor" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="View Code" src="https://dl.infragistics.com/x/img/browsers/button-code.png"/>
</a>
<a target="_blank" href="https://infragistics.com/blazor-client/samples/interactions/query-builder/overview" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-run.png"/>
</a>
<!-- <a target="_blank" href="https://codesandbox.io/s/github/IgniteUI/igniteui-blazor-examples/tree/master/samples/interactions/query-builder/overview?fontsize=14&hidenavigation=1&theme=dark&view=preview&file=/src/App.razor" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://dl.infragistics.com/x/img/browsers/button-sandbox.png"/>
</a> -->
</body>
</html>

## Branches

> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-blazor-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-blazor-examples/tree/vnext) branch only when you want to contribute new samples to this repository.

## Setup

- instal **.NET SDK** from this [website](https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install)
Comment thread
IMinchev64 marked this conversation as resolved.

## Running App in Visual Studio 2022

NOTE: VS 2022 has better code highlighting and error detection than VS Code does.

- open **Visual Studio 2022** as an administrator

- open the **BlazorClientApp.sln** solution

- right click solution and select **Restore NuGet Packages** menu item

- click **Debug** menu and select **Start Debugging** or press **F5** key


## Running App in VS Code

- open **VS Code** as an administrator

- open this folder in **VS Code**

- open a terminal window

- to restore assemblies, run this command:
```dotnet restore```

- to run samples, run this command:
```dotnet watch run```

- wait for for message:
Comment thread
IMinchev64 marked this conversation as resolved.
**Now listening on: http://localhost:4200**

- open **http://localhost:4200** in your browser


## Resources

- [Razor Component Models](https://www.codemag.com/article/1911052)
- [Razor Syntax](https://docs.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-3.1#razor-syntax)
- [Getting reference to components](https://docs.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-3.1#capture-references-to-components)
8 changes: 8 additions & 0 deletions samples/interactions/query-builder/overview/_Imports.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using Infragistics.Samples
Loading
Loading