microsoft / fluentui-blazor

Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
https://www.fluentui-blazor.net
MIT License
3.83k stars 372 forks source link

Microsoft.Fast.Components.FluentUI 3.0.0-preview.3 FluentDataGrid shows no rows #385

Closed ernestasjuska closed 1 year ago

ernestasjuska commented 1 year ago

Hello,

I am trying out new components in Microsoft.Fast.Components.FluentUI 3.0.0-preview.3 and noticed that FluentDataGrid does not show any rows.

Before updating (Microsoft.Fast.Components.FluentUI 2.1.4): image

After updating (Microsoft.Fast.Components.FluentUI 3.0.0-preview.3): image

Thanks.


Code for repro: Index.razor:

<FluentDataGrid Id="general" RowsData=myItems GridTemplateColumns="1fr" TGridItem=MyItem>
    <PropertyColumn Property=@(c => c!.Description) />
</FluentDataGrid>

@code {
    public record MyItem(string Description);
    private IQueryable<MyItem> myItems = new MyItem[]
    {
        new("First"),
        new("Second"),
    }.AsQueryable();
}
vnbaaij commented 1 year ago

Parameter names have changed for v3.see http://baaijte.net/blog/microsoft-fluentui-blazor-3.0/

osmanm786 commented 1 year ago

It's not rowsdata in the preview. Review it here https://brave-cliff-0c0c93310-365.centralus.azurestaticapps.net/DataGrid

ernestasjuska commented 1 year ago

I see. I didn't notice that RowData is now red instead of blue.

Thanks.