Hello,
I'm using Radzen DataGrid and when I'm selecting one row on a first page row is highlighting then I'm going to second page through pagination then I'm coming back to the first page so row losts its highlight. By default, it should be keep highlighting regardless changing pages. Please give me an advice that what can impact to break this default behavior?
Here is my DataGrid implementation.
<RadzenDataGrid @ref="rolesGrid"
class="radzen-datagrid-style"
AllowFiltering=false
AllowPaging=true
AllowSorting=true
Data="@Roles"
AllowColumnResize=false
AllowAlternatingRows=true
PageSize="25"
PageSizeOptions="@PageSizeOptions"
PagerHorizontalAlign="HorizontalAlign.Center"
FilterMode="FilterMode.Advanced"
ShowPagingSummary="true"
LogicalFilterOperator="LogicalFilterOperator.Or"
SelectionMode="DataGridSelectionMode.Single"
TItem="UserRoleModel"
@bind-Value="SelectedRow"
RowClick="RowClicked">
<EmptyTemplate>
<p style="color: lightgrey; font-size: 24px; text-align: center; margin: 2rem;">No Records</p>
</EmptyTemplate>
<Columns>
<RadzenDataGridColumn SortOrder="SortOrder.Ascending" TItem="UserRoleModel" Sortable="true" Property="Name" Title="User Role Name" Filterable=false Width="450px">
<Template Context="dto">
<a style="color: #0071c1; text-decoration: underline; cursor: pointer;" onclick="@(() => OpenRole(dto))">@dto.Name</a>
</Template>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="UserRoleModel" Sortable="true" Property="Description" Title="Description" Filterable=false />
</Columns>
</RadzenDataGrid>