You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catch(OperationCanceledExceptionoce)when(oce.CancellationToken==request.CancellationToken)// No-op; we canceled the operation, so it's fine to suppress this exception.
Copy file name to clipboardExpand all lines: src/Core/Components/DataGrid/FluentDataGridCell.razor.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,15 @@ public FluentDataGridCell(LibraryConfiguration configuration) : base(configurati
36
36
37
37
/// <summary />
38
38
protectedstring?StyleValue=>DefaultStyleBuilder
39
-
.AddStyle("grid-column",GridColumn.ToString(CultureInfo.InvariantCulture),()=>!Grid.EffectiveLoadingValue&&(Grid.Itemsis not null||Grid.ItemsProvideris not null)&&Grid.DisplayMode==DataGridDisplayMode.Grid)
39
+
.AddStyle("grid-column",GridColumn.ToString(CultureInfo.InvariantCulture),()=>!Grid.EffectiveLoadingValue&&(Grid.Itemsis not null||Grid.ItemsProvideris not null)&&InternalGridContext.TotalItemCount>0&&Grid.DisplayMode==DataGridDisplayMode.Grid)
.AddStyle("height",$"{((int)Grid.RowSize).ToString(CultureInfo.InvariantCulture)}px",()=>!Grid.EffectiveLoadingValue&&!Grid.Virtualize&&!Grid.MultiLine&&(Grid.Itemsis not null||Grid.ItemsProvideris not null))
47
+
.AddStyle("height",$"{((int)Grid.RowSize).ToString(CultureInfo.InvariantCulture)}px",()=>!Grid.EffectiveLoadingValue&&!Grid.Virtualize&&!Grid.MultiLine&&(Grid.Itemsis not null||Grid.ItemsProvideris not null)&&InternalGridContext.TotalItemCount>0)
/// <param name="icon">The <see cref="IconInfo"/> to instantiate.</param>
72
+
/// <param name="result">When this method returns, contains the <see cref="CustomIcon"/> value if the conversion succeeded, or null if the conversion failed. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
73
+
/// <remarks>
74
+
/// This method requires dynamic access to code. This code may be removed by the trimmer.
75
+
/// If the assembly is not yet loaded, it will be loaded by the method `Assembly.Load`.
76
+
/// To avoid any issues, the assembly must be loaded before calling this method (e.g. adding an icon in your code).
77
+
/// </remarks>
78
+
/// <returns>True if the icon was found and created; otherwise, false.</returns>
79
+
[RequiresUnreferencedCode("This method requires dynamic access to code. This code may be removed by the trimmer.")]
0 commit comments