Skip to content

Commit

Permalink
demo updated
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Sep 5, 2024
1 parent a1dbc1a commit 174f0a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RadzenBlazorDemos/Pages/DataGridFooterTotals.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
<Columns>
<RadzenDataGridColumn Width="60px" Title="#" Filterable="false" Sortable="false" TextAlign="TextAlign.Center">
<Template>
<RenderOnceComponent CanRender=@(!(index >= ordersGrid.PageSize))>
@{var pageSize = Math.Min(ordersGrid.PageSize, ordersGrid.View.Count());}
<RenderOnceComponent CanRender=@(!(index >= pageSize))>
@{
ResetIndex(index >= ordersGrid.PageSize);
ResetIndex(index >= pageSize);
}
@((ordersGrid.CurrentPage * ordersGrid.PageSize) + index++ + 1)
@((ordersGrid.CurrentPage * pageSize) + index++ + 1)
</RenderOnceComponent>
</Template>
</RadzenDataGridColumn>
Expand Down

0 comments on commit 174f0a9

Please sign in to comment.