telerik usage fixes

This commit is contained in:
2026-06-18 01:08:13 -04:00
parent 919754d284
commit b6b5ee4db6
4 changed files with 8 additions and 6 deletions
-1
View File
@@ -12,7 +12,6 @@ public class CardData
? MathF.Round((Health.Value + Attack.Value) / (float)Cost.Value, 2) ? MathF.Round((Health.Value + Attack.Value) / (float)Cost.Value, 2)
: 0; : 0;
public string? Description { get; init; } public string? Description { get; init; }
public string? Faction { get; init; } public string? Faction { get; init; }
public string? Set { get; init; } public string? Set { get; init; }
+5 -4
View File
@@ -5,18 +5,19 @@
<div class="agents-page"> <div class="agents-page">
<TelerikGrid Data="@agents" <TelerikGrid Data="@agents"
Sortable="true" Sortable="true"
FilterMode="@GridFilterMode.FilterRow" FilterMode="GridFilterMode.FilterRow"
Pageable="true" Pageable="true"
PageSize="250" PageSize="250"
Resizable="true" Resizable="true"
Height="850px" Height="850px"
Groupable="true"
class="agents-grid"> class="agents-grid">
<GridColumns> <GridColumns>
<GridColumn Field="@nameof(CardData.HasImmortalize)" Title="Im." Width="120px"> <GridColumn Field="@nameof(CardData.IsImmortalized)" Title="Im." Width="120px">
<Template> <Template>
@if (((CardData)context).HasImmortalize) @if (((CardData)context).IsImmortalized)
{ {
<i class="bi bi-star-fill" style="color: #ffd700;" title="Immortalizes"></i> <i class="bi bi-star-fill" style="color: #ffd700;" title="Immortalized"></i>
} }
</Template> </Template>
</GridColumn> </GridColumn>
+1
View File
@@ -11,3 +11,4 @@
@using Web.Layout @using Web.Layout
@using Telerik.Blazor @using Telerik.Blazor
@using Telerik.Blazor.Components @using Telerik.Blazor.Components
@using Telerik.DataSource
+1
View File
@@ -14,6 +14,7 @@
<link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/app.css" rel="stylesheet"/> <link href="css/app.css" rel="stylesheet"/>
<link href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" rel="stylesheet"/> <link href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" rel="stylesheet"/>
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>
<link href="favicon.png" rel="icon" type="image/png"/> <link href="favicon.png" rel="icon" type="image/png"/>
<link href="Web.styles.css" rel="stylesheet"/> <link href="Web.styles.css" rel="stylesheet"/>
<script type="importmap"></script> <script type="importmap"></script>