Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter 4.11.0

Prefix Reserved
dotnet add package Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter --version 4.11.0                
NuGet\Install-Package Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter -Version 4.11.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="Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter" Version="4.11.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter --version 4.11.0                
#r "nuget: Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter, 4.11.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.
// Install Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter as a Cake Addin
#addin nuget:?package=Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter&version=4.11.0

// Install Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter as a Cake Tool
#tool nuget:?package=Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter&version=4.11.0                

About

Use this package if the data you want to display in the FluentDataGrid (component in the Microsoft.FluentUI.AspNetCore.Components library) comes from Microsoft.OData.Client.

Microsoft OData Client library's DataServiceContext gives you a DataServiceQuery property for each resource in your OData service endpoint. Simply supply this as the grid's Items parameter:

@inject DataServiceContext MyServiceContext

<FluentDataGrid Items="@MyServiceContext.People">
    ...
</FluentDataGrid>

You may also use any DataServiceQuery-supported LINQ operator to filter the data before passing it:

@inject DataServiceContext MyServiceContext

<FluentDataGrid Items="@MyServiceContext.Documents.Where(d => d.CategoryId == currentCategoryId)">
    ...
</FluentDataGrid>

The FluentDataGrid recognizes DataServiceQuery-supplied IQueryable instances and knows how to resolve queries asynchronously for efficiency.

Installation

Install the package by running the command:

dotnet add package Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter

Usage

In your Program.cs file you need to add the following:

builder.Services.AddDataGridODataAdapter();

Support

The Microsoft Fluent UI Blazor library is an open source project and is not an official part of ASP.NET Core, which means it’s not officially supported and isn’t committed to ship updates as part of any official .NET updates. It is built and maintained by Microsoft employees (and other contributors) and offers support, like most other open source projects, on a best effort base through the GitHub repository only.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.11.0 56 12/19/2024
4.11.0-beta.1 64 12/5/2024