Skip to content

Commit

Permalink
freeze column
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaoHans committed Oct 26, 2024
1 parent 3b1b620 commit 8d1ee83
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
</RadzenStack>
</RadzenCard>

@* Freeze Header: Style="height:calc(100vh - 160px)" *@
<RadzenDataGrid @ref="_grid" Data="@_entities" AllowPaging="true" AllowSorting="true"
PagerHorizontalAlign="HorizontalAlign.Center"
PagerHorizontalAlign="HorizontalAlign.Center"
PageSizeOptions="@_pageSizeOptions" ShowPagingSummary="@_showPagerSummary" LoadData="LoadDataAsync"
Count="@_totalCount" IsLoading="@_isLoading">
<Columns>
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.Id)" Title="ID" Width="80px" Visible="false" />
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.UserName)" Title="@L["DisplayName:UserName"]" Width="160px" />
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.UserName)" Frozen="true" Title="@L["DisplayName:UserName"]" Width="160px" />
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.Email)" Title="@L["DisplayName:Email"]" Width="160px" />
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.PhoneNumber)" Title="@L["DisplayName:PhoneNumber"]" Width="160px" />
<RadzenDataGridColumn Title="@L["DisplayName:IsActive"]" Width="60px" Filterable="false" Sortable="false">
Expand All @@ -42,7 +42,7 @@
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn Property="@nameof(IdentityUserDto.CreationTime)" Filterable="false" Title="@L["CreationTime"]" Width="160px" />
<RadzenDataGridColumn Title="@L["Actions"]" Width="160px" Filterable="false" Sortable="false">
<RadzenDataGridColumn Title="@L["Actions"]" Width="160px" Frozen="true" Filterable="false" Sortable="false">
<Template>
@if (HasUpdatePermission)
{
Expand Down

0 comments on commit 8d1ee83

Please sign in to comment.