![]() |
VOOZH | about |
dotnet add package MeshWeaver.GridModel --version 2.5.0
NuGet\Install-Package MeshWeaver.GridModel -Version 2.5.0
<PackageReference Include="MeshWeaver.GridModel" Version="2.5.0" />
<PackageVersion Include="MeshWeaver.GridModel" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="MeshWeaver.GridModel" />Project file
paket add MeshWeaver.GridModel --version 2.5.0
#r "nuget: MeshWeaver.GridModel, 2.5.0"
#:package MeshWeaver.GridModel@2.5.0
#addin nuget:?package=MeshWeaver.GridModel&version=2.5.0Install as a Cake Addin
#tool nuget:?package=MeshWeaver.GridModel&version=2.5.0Install as a Cake Tool
MeshWeaver.GridModel provides the core grid model definitions and controls for the MeshWeaver ecosystem. This library defines the GridControl class that inherits from UiControl<GridControl> in the MeshWeaver.Layout project, allowing for consistent data grid rendering across different UI implementations.
GridControl class for UI implementations// Create a basic grid control
var gridData = new
{
ColumnDefs = new[]
{
new ColDef { Field = "name", HeaderName = "Name" },
new ColDef { Field = "age", HeaderName = "Age" },
new ColDef { Field = "country", HeaderName = "Country" }
},
RowData = new[]
{
new { name = "John", age = 30, country = "USA" },
new { name = "Sarah", age = 28, country = "Canada" },
new { name = "Miguel", age = 32, country = "Mexico" }
}
};
// Create the grid control
var gridControl = new GridControl(gridData);
// Configure the grid (optional)
gridControl = gridControl.WithClass("customer-grid")
.WithStyle(style => style.Width("100%").Height("500px"));
// Advanced configuration with grid options
var gridData = new
{
ColumnDefs = new[]
{
new ColDef
{
Field = "name",
HeaderName = "Name",
Filter = true,
Sortable = true
},
new ColDef
{
Field = "age",
HeaderName = "Age",
Filter = "agNumberColumnFilter",
Sortable = true
},
new ColDef
{
Field = "country",
HeaderName = "Country",
Filter = true
}
},
RowData = GetCustomers(), // Your data source method
DefaultColDef = new ColDef
{
Resizable = true,
MinWidth = 100
},
Pagination = true,
PaginationPageSize = 10
};
var gridControl = new GridControl(gridData);
This library provides the model definitions and controls, but does not include any UI rendering capabilities. For UI rendering, use one of the following implementations:
Refer to the for more information about the overall project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-preview1 | 97 | 4/16/2026 |
| 2.5.0 | 249 | 11/3/2025 |
| 2.4.0 | 229 | 10/2/2025 |
| 2.3.0 | 271 | 8/4/2025 |
| 2.2.0 | 544 | 7/21/2025 |
| 2.1.0 | 256 | 4/6/2025 |
| 2.0.3 | 573 | 3/24/2025 |
| 2.0.2 | 539 | 3/24/2025 |
| 2.0.1 | 190 | 3/21/2025 |
| 2.0.0 | 226 | 3/20/2025 |
| 2.0.0-preview3 | 172 | 2/28/2025 |
| 2.0.0-Preview2 | 174 | 2/10/2025 |
| 2.0.0-preview1 | 161 | 1/6/2025 |
| 1.0.1 | 212 | 10/8/2024 |
| 1.0.0 | 180 | 10/8/2024 |