Can I use AutoFitAllColumnsAsync() on Grid on and razor.cs that has this structure

0 Answers 24 Views
Grid
Glendys
Top achievements
Rank 1
Iron
Glendys asked on 19 Mar 2024, 11:25 AM

I implemented the AutoFitAllColumnsAsync() on the CustomGrid, but the column don't resize

Please see structure below

<CustomGrid @ref="@Grid"

OnRead="@OnGridRead" TItem="@Product" Pageable="true" Sortable="true" Resizable="true" FilterMode="GridFilterMode.FilterRow"> <GridColumns>

<CascadingValue Value="grid.GetDistinctColumnFilterValues">

<CustomGridColumn Field="@nameof(Product.Name)" Title="Product Name" /> <CustomGridColumn Field="@nameof(Product.Price)" /> <CustomGridColumn Field="@nameof(Product.ReleaseDate)" Title="Release Date" /> <CustomGridColumn Field="@nameof(Product.Active)" />

<CascadingValue>

</GridColumns>

</CustomGrid>

Glendys
Top achievements
Rank 1
Iron
commented on 20 Mar 2024, 07:36 AM

This was solved. The solution didn't have anything to do  with the structure. just with the load time of the report.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Glendys
Top achievements
Rank 1
Iron
Share this question
or