I'm having an issue with the RadzenDropDownDataGrid component, in that it doesn't highlight the current value on initial load in the grid (it does display in the text field). However, once I reselect the item, and then close and reopen the grid, it does highlight it (and goto the right page, if i have paging on).
If I change to a plain RadzenDropDown, then it does display the item in the drop down as expected.
Is this expected behaviour, or do I need to set a property on the RadzenDropDownDataGrid, so that it highlights the selected item when i open the drop down grid?
I can get it to work using the standard dropdown, you just need to set @bind-Value, which (I believe) behind the scenes set the SelectedValue. Hope that helps.
Still I am not able to see selected text as highlighted on component load. @here is code written to bind data to RadzenDropDownDataGrid
<RadzenDropDownDataGrid @bind-Value="plansData.GroupId"
Data="masterData.GroupInfos"
TextProperty="GroupName" ValueProperty="GroupId"
Placeholder="Select Group"
class="floating-input"
FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
AllowFiltering="true"
TValue="Guid"
FocusFilterOnPopup="true"
SearchText="Enter group name">
I have the same problem with the RadzenDropDownDataGrid component, in that it doesn't highlight the current value on the initial load in the grid. I have tried version 4.18.0 and 5.3.0, and neither of the 2 works
I have tried with Selectedvalue and it still doesn't work, I have also tried with SelectedItem and the same problem. Here is my code:
<RadzenDropDownDataGrid @bind-Value=Item.FacilityIdentifier Data=@(uwwtpcodes) Name="FacilityIdentifier"
AllowFiltering="true" AllowFilteringByAllStringColumns="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
TextProperty="UwwCode" ValueProperty="UwwCode" SelectedValue="Item.FacilityIdentifier">