SamovarGrid 1.0.0-alpha.3
This is a prerelease version of SamovarGrid.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package SamovarGrid --version 1.0.0-alpha.3
NuGet\Install-Package SamovarGrid -Version 1.0.0-alpha.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SamovarGrid" Version="1.0.0-alpha.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SamovarGrid --version 1.0.0-alpha.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SamovarGrid, 1.0.0-alpha.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SamovarGrid as a Cake Addin
#addin nuget:?package=SamovarGrid&version=1.0.0-alpha.3&prerelease
// Install SamovarGrid as a Cake Tool
#tool nuget:?package=SamovarGrid&version=1.0.0-alpha.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SamovarGrid. DataGrid for Blazor.
Functions
- Sorting
- Paging
- Editing
- Deleting
Prerequisites
- Bootstrap 4
- Open Iconic
.NET Core 3.0 download
Basic Sample
Bind Samovar Javascript file in _Host.cshtml
...
<script src="_content/SamovarGrid/samovar.grid.js"></script>
...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PacketServerTest</title>
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>
@(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))
</app>
<script src="_framework/blazor.server.js"></script>
<script src="_content/SamovarGrid/samovar.grid.js"></script>
</body>
</html>
@page "/"
@using Samovar
@using Samovar.Common
@using System.Linq
@using PacketServerTest.Data
@inject WeatherForecastService ForecastService
<SamovarGrid Data="@forecasts"
OrderFieldByDefault="@nameof(WeatherForecast.TemperatureC)"
OrderDesc="true"
Pageable="false"
PageSize="25"
Height="600px"
PagerSize="10"
OnRowSelected="@RowSelectedHandler"
OnRowDeleteCommit="@RowDeleteCommitHandler"
Headless="false">
<SamovarGridColumns>
<SamovarGridColumn Title="Date" Field="@nameof(WeatherForecast.Date)" />
<SamovarGridColumn Title="TemperatureC" Field="@nameof(WeatherForecast.TemperatureC)" />
<SamovarGridColumn Title="TemperatureF" Field="@nameof(WeatherForecast.TemperatureF)" />
<SamovarGridColumn Title="Summary" Field="@nameof(WeatherForecast.Summary)" />
<SamovarGridCommandColumn>
<SamovarGridCommand CommandName="edit" CommandType=Samovar.Common.GridRowCommandType.Edit />
<SamovarGridCommand CommandName="delete" CommandType=Samovar.Common.GridRowCommandType.Delete />
</SamovarGridCommandColumn>
</SamovarGridColumns>
<SamovarGridEventManager OnRowSelected="@RowSelectedHandler" />
</SamovarGrid>
<h4>Action</h4>
<div>@selectedAction</div>
<h4>Action row item</h4>
<div>@actionItem</div>
@code{
string selectedAction { set; get; }
string actionItem { set; get; }
List<WeatherForecast> forecasts;
protected override async Task OnInitializedAsync()
{
forecasts = (await ForecastService.GetForecastAsync(DateTime.Now)).ToList();
}
void RowSelectedHandler(GridRowEventArgs args)
{
actionItem = ((WeatherForecast)args.RowData).Summary;
selectedAction = "RowSelected";
}
void RowDeleteCommitHandler(GridRowEventArgs args)
{
actionItem = ((WeatherForecast)args.RowData).Summary;
this.forecasts.Remove((WeatherForecast)args.RowData);
selectedAction = "RowDeleteCommit";
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.Components (>= 3.0.0-preview9.19424.4)
- Microsoft.AspNetCore.Components.Web (>= 3.0.0-preview9.19424.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.4.0-beta.4 | 510 | 10/19/2020 |
2.4.0-beta.3 | 249 | 9/15/2020 |
2.4.0-beta.2 | 270 | 9/15/2020 |
2.4.0-beta.1 | 442 | 9/13/2020 |
2.3.1 | 2,383 | 7/26/2020 |
2.3.0 | 428 | 6/21/2020 |
2.1.0 | 622 | 2/22/2020 |
2.0.1 | 455 | 12/18/2019 |
1.0.1 | 510 | 10/30/2019 |