Hi,
I was wondering what is the best approach to strip out the HTML of a text field that is displayed in a Blazor Datagrid.
I tried using the Template feature along with MarkupString as shown below but it just returns the name of the field rather than the contents of it.
<TelerikGrid Data="Model.CurrentPageData" TotalCount="Model.TotalItemCount" OnRead="ReadItems" Pageable="true" PageSize="10" Groupable="true" Sortable="false">
<GridColumns>
<GridColumn Field="@(nameof(Escalation.EscalationId))" Title="Escalation ID" Width="120px" />
<GridColumn Field="@(nameof(Escalation.CaseType))" Title="Type" Width="120px" />
<GridColumn Field="@(nameof(Escalation.SummaryOfRequest))" Title="Request Summary" Width="120px" />
<Template>
@((MarkupString)(nameof(Escalation.SummaryOfRequest)))
</Template>
</GridColumn>
<GridColumn Field="@(nameof(Escalation.PrimaryBu))" Title="Primary BU" Width="120px" />
<GridColumn Field="@(nameof(Escalation.CreatedDate))" Title="Created" DisplayFormat="{0:dddd, dd MMM yyyy}" Width="120px" />
</GridColumns>
</TelerikGrid>