[성현모] TestTrend 기능 추가
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<RadzenCard Style="@($"height:100%;{CardStyle};")" class="rz-mb-3 rz-p-0">
|
||||
<RadzenCard Style="@($"height:100%;{CardStyle}; margin:0 !important;")" class="rz-mb-3 rz-p-0">
|
||||
<RadzenStack Style="width:100%; height:2.7rem; background-color:var(--rz-primary-lighter);" class="rz-pl-3">
|
||||
<RadzenLabel class="rz-p-1" Text="@HeaderText">
|
||||
</RadzenLabel>
|
||||
</RadzenStack>
|
||||
<RadzenStack Style="@($"height:{ContentsHeight}")" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
|
||||
<RadzenStack Style="@($"height:{ContentsHeight}; overflow:auto;")" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
|
||||
@ChildContent
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
@using WebClient.Library.Model
|
||||
@typeparam TDataModel
|
||||
@typeparam TDataModel
|
||||
|
||||
<RadzenDataGrid class="rz-shadow-1" TItem="TDataModel" Data="@DataList" GridLines="DataGridGridLines.Both"
|
||||
AllowFiltering FilterMode="FilterMode.Advanced" CellRender="@CellRender" AllowColumnResize AllowVirtualization
|
||||
@ -107,7 +107,10 @@
|
||||
public EventCallback<TDataModel> OnSelectRow { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<TDataModel> OnDoubleClickRow{ get; set; }
|
||||
public EventCallback<SelectRow> OnDoubleClickRow { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public int ParentTabId { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool VisibleRowNo { get; set; }
|
||||
@ -136,7 +139,7 @@
|
||||
// var cellData = args.Data as Overview;
|
||||
// if (cellData is null)
|
||||
// return;
|
||||
|
||||
|
||||
// if ((args.Column.Property.ToLower().Equals("testdate") || args.Column.Property.ToLower().Equals("host")) == false)
|
||||
// return;
|
||||
|
||||
@ -189,7 +192,7 @@
|
||||
// args.Attributes.Add("rowspan", rowCount);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
private async Task SelectRow(TDataModel data)
|
||||
{
|
||||
await OnSelectRow.InvokeAsync(data);
|
||||
@ -197,6 +200,12 @@
|
||||
|
||||
private async Task OnRowDoublClick(DataGridRowMouseEventArgs<TDataModel> args)
|
||||
{
|
||||
await OnDoubleClickRow.InvokeAsync(args.Data);
|
||||
var selectRow = new SelectRow
|
||||
{
|
||||
Row = args.Data as IDataModel,
|
||||
ParentTabID = ParentTabId
|
||||
};
|
||||
|
||||
await OnDoubleClickRow.InvokeAsync(selectRow);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user