Fix columns resizing
This commit is contained in:
@ -24,23 +24,23 @@
|
||||
</RadzenRow>
|
||||
<RadzenRow>
|
||||
<RadzenColumn SizeMD="12">
|
||||
<RadzenDataGrid TItem="Campaign" Data="@campaigns" RowExpand="@RowExpandAsync" IsLoading="@(state != CampaignsPageState.Idle)" AllowFiltering="true" AllowPaging="true" ShowPagingSummary="true" PageSizeOptions=@(new int[] { 5, 10, 20, 30 }) AllowSorting="true" ExpandMode="DataGridExpandMode.Single">
|
||||
<RadzenDataGrid TItem="Campaign" Data="@campaigns" RowExpand="@RowExpandAsync" IsLoading="@(state != CampaignsPageState.Idle)" AllowFiltering="true" AllowPaging="true" ShowPagingSummary="true" PageSizeOptions=@(new int[] { 5, 10, 20, 30 }) AllowSorting="true" AllowColumnResize="true" ExpandMode="DataGridExpandMode.Single">
|
||||
<Template Context="campaign">
|
||||
<RadzenDataGrid Data="@campaign.Operations" AllowFiltering="true" AllowPaging="true" ShowPagingSummary="true" PageSizeOptions=@(new int[] { 5, 10, 20, 30 }) AllowSorting="true">
|
||||
<RadzenDataGrid Data="@campaign.Operations" AllowFiltering="true" AllowPaging="true" ShowPagingSummary="true" PageSizeOptions=@(new int[] { 5, 10, 20, 30 }) AllowSorting="true" AllowColumnResize="true">
|
||||
<Columns>
|
||||
<RadzenDataGridColumn Property="Id" Title="ID" SortOrder="SortOrder.Descending" Resizable="false" Width="100px" MaxWidth="100px" />
|
||||
<RadzenDataGridColumn Property="Type" Title="Тип операции" Resizable="true" />
|
||||
<RadzenDataGridColumn Property="Type" Title="Тип операции" />
|
||||
<RadzenDataGridColumn Property="CreatedAt" Title="Дата создания" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn Property="StartedAt" Title="Дата начала" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn Property="StartedAt" Title="Дата окончания" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn Property="MessageGuid" Title="ID сообщения" Resizable="true" />
|
||||
<RadzenDataGridColumn Property="FailureReason" Title="Причина ошибки" Resizable="true" />
|
||||
<RadzenDataGridColumn Property="MessageGuid" Title="ID сообщения" />
|
||||
<RadzenDataGridColumn Property="FailureReason" Title="Причина ошибки" />
|
||||
</Columns>
|
||||
</RadzenDataGrid>
|
||||
</Template>
|
||||
<Columns>
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="Id" Title="ID" SortOrder="SortOrder.Descending" Resizable="false" Width="100px" MaxWidth="100px" />
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="Type" Title="Тип кампании" Resizable="true">
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="Type" Title="Тип кампании">
|
||||
<Template Context="campaign">
|
||||
@CampaignTypeToString(campaign.Type)
|
||||
</Template>
|
||||
@ -48,7 +48,7 @@
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="CreatedAt" Title="Дата создания" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="StartedAt" Title="Дата начала" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="StartedAt" Title="Дата окончания" Resizable="false" Width="150px" MaxWidth="150px" />
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="FailureReason" Title="Причина ошибки" Resizable="true" />
|
||||
<RadzenDataGridColumn TItem="Campaign" Property="FailureReason" Title="Причина ошибки" />
|
||||
</Columns>
|
||||
</RadzenDataGrid>
|
||||
</RadzenColumn>
|
||||
|
||||
Reference in New Issue
Block a user