Hi there,
is it possible to use HTML-Tags or other formatting options in PagingSummaryFormat?
Example (make total no of records bold/strong):
PagingSummaryFormat = "Displaying page {0} of {1} (total {2} records)"
Thanx
Thomas
Hi there,
is it possible to use HTML-Tags or other formatting options in PagingSummaryFormat?
Example (make total no of records bold/strong):
PagingSummaryFormat = "Displaying page {0} of {1} (total {2} records)"
Thanx
Thomas
It will be in our next update later today:
This is great, thank you!
Hi,
Has this functionality been taken out?
I upgraded my version and now it shows instead of making the text between the tags bold.
Kind regards,
Tino
Check the updated demo: Blazor DataGrid Component - Pager API | Free UI Components by Radzen
<RadzenDataGrid @ref=@dataGrid Data="@orderDetails" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Center" AllowSorting="true"
PageSizeOptions="@pageSizeOptions" ShowPagingSummary="@showPagerSummary" Page="@OnPage">
<PagingSummaryTemplate>
<RadzenIcon Icon="database" Style="color: var(--rz-primary); font-size: var(--rz-pager-summary-font-size);" />
Displaying page @context.CurrentPage of @context.NumberOfPages <b>(total @context.TotalCount records)</b>
</PagingSummaryTemplate>
Hi Atanas,
I'm using the following code and somehow it still renders with
<RadzenDataGrid @ref="_pendingGrid" Data="@_pendingSurveys" TItem="OngoingSurveyDetailModel" Density="Density.Compact" @bind-Settings="@PendingSettings" LoadSettings="LoadSettings"
AllowSorting="true" AllowMultiColumnSorting="true" AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" AllowPaging="true"
PagerHorizontalAlign="HorizontalAlign.Center" PagerPosition="PagerPosition.Bottom" PageSizeOptions="@_pageSizeOptions" PageSizeText="@Localizer["PageSizeText"]"
ShowPagingSummary="true" Page="@OnPage" IsLoading="@_isLoading" LoadData="LoadDataAsync" RowClick="OnRowClick">
<PagingSummaryTemplate>
@Localizer["PageSummary1"] @context.CurrentPage @Localizer["PageSummary2"] @context.NumberOfPages
<b>(@Localizer["PageSummary3"] @context.TotalCount @Localizer["PageSummary4"])</b>
</PagingSummaryTemplate>
<EmptyTemplate>
<p class="emptyText">@Localizer["NoData"]</p>
</EmptyTemplate>
Can you tell me what I'm missing?
kind regards
Tino
Blazor escapes HTML in strings by default. You should probably cast to MarkupString.