[성현모] DB 예외처리 추가, UI 사이즈 조정
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
@inject ContextMenuService ContextMenuService
|
||||
|
||||
<RadzenDataGrid TItem="TDataModel" Data="@DataList" AllowPaging PageSize="100"
|
||||
<RadzenDataGrid Style="height:calc(100vh - 23rem); font-size: 20px;" TItem="TDataModel" Data="@DataList" AllowPaging PageSize="100"
|
||||
AllowFiltering FilterMode="FilterMode.Advanced" CellRender="@CellRender"
|
||||
SelectionMode="DataGridSelectionMode.Single" @bind-Value="@SelectedRow"
|
||||
CellContextMenu="@OnCellContextMenu" RowSelect="@SelectRow">
|
||||
@ -25,8 +25,10 @@
|
||||
if (col.Name.ToLower().Equals("testdate"))
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
<Template>
|
||||
@Convert.ToDateTime(col.GetValue(context)).ToString("yyyy-MM-dd")
|
||||
<Template>
|
||||
<span class="custom-rz-value rz-color-secondary">
|
||||
@Convert.ToDateTime(col.GetValue(context)).ToString("yyyy-MM-dd")
|
||||
</span>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
@ -34,9 +36,9 @@
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
<Template>
|
||||
<RadzenText Style="color: lime;">
|
||||
<span class="custom-rz-value" style="color: lime;">
|
||||
@col.GetValue(context)
|
||||
</RadzenText>
|
||||
</span>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
@ -44,15 +46,20 @@
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
<Template>
|
||||
<RadzenText Style="color:red;">
|
||||
<span class="custom-rz-value" style="color:red;">
|
||||
@col.GetValue(context)
|
||||
</RadzenText>
|
||||
</span>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
else
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
<Template>
|
||||
<span class="custom-rz-value">
|
||||
@col.GetValue(context)
|
||||
</span>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
.custom-rz-value {
|
||||
font-size: 1.5rem !important;
|
||||
}
|
||||
Reference in New Issue
Block a user