MeshWeaver.GridModel
2.5.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MeshWeaver.GridModel --version 2.5.0
NuGet\Install-Package MeshWeaver.GridModel -Version 2.5.0
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="MeshWeaver.GridModel" Version="2.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.GridModel" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="MeshWeaver.GridModel" />Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MeshWeaver.GridModel --version 2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.GridModel, 2.5.0"
#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.
#:package MeshWeaver.GridModel@2.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MeshWeaver.GridModel
Overview
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.
Features
GridControlclass for UI implementations- Column definition models for grid configuration
- Data structure models for grid rendering
- Integration with the MeshWeaver UI control system
Usage
// 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 Grid Configuration
// 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);
Key Concepts
- Grid control architecture
- Column definitions and configuration
- Row data structure
- Grid options and features
- Data binding patterns
Integration with MeshWeaver
- Extends the MeshWeaver.Layout UiControl system
- Provides models that UI implementations can render
- Works seamlessly with Blazor, React, or other UI technologies
UI Implementations
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:
- MeshWeaver.Blazor.AgGrid - Blazor implementation using AG Grid
Related Projects
- MeshWeaver.Layout - Core layout and UI control system
- MeshWeaver.Blazor - Blazor components
See Also
Refer to the main MeshWeaver documentation for more information about the overall project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- MeshWeaver.Layout (>= 2.5.0)
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 |
|---|---|---|
| 3.0.0-preview1 | 101 | 4/16/2026 |
| 2.5.0 | 253 | 11/3/2025 |
| 2.4.0 | 231 | 10/2/2025 |
| 2.3.0 | 274 | 8/4/2025 |
| 2.2.0 | 546 | 7/21/2025 |
| 2.1.0 | 261 | 4/6/2025 |
| 2.0.3 | 575 | 3/24/2025 |
| 2.0.2 | 545 | 3/24/2025 |
| 2.0.1 | 197 | 3/21/2025 |
| 2.0.0 | 228 | 3/20/2025 |
| 2.0.0-preview3 | 175 | 2/28/2025 |
| 2.0.0-Preview2 | 176 | 2/10/2025 |
| 2.0.0-preview1 | 166 | 1/6/2025 |
| 1.0.1 | 218 | 10/8/2024 |
| 1.0.0 | 183 | 10/8/2024 |