RadzenDropDownDataGrid initial selection

Hi,

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?

Thanks.

i seem to have the same or a very close problem.... but i cant even get the dropdown to set the inital value...

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.

But this isn't working for the Grid version.

HI @Harry,

We were able to reproduce the problem with initial selection of DropDownDataGrid and the fix will be part of our next update tomorrow:

2 Likes

Hi Vladimir,

I'm glad you were able to reproduce the issue and that a fix is coming so fast. Much appreciated.

Best, Harry.

glad to hear this.... :smiley:

Is this issue resolved?

My commit is posted here more than a year ago.

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">

You can check our demos for reference.

Can you share link if you have?

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

Check this thread Issue with RadzenDropDownDataGrid: Label Not Displaying for Selected Items Beyond Initial Load - #3 by enchev

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">

This should be most probably this:
SelectedValue="Item"

Where the item is the data item that holds the value outside the displayed data.

I've tried that option as well.

The label text if selected, what is not selected is the drop-down list item.
I attach an image so you can see it.

RadzenDropDownDataGrid_select

Once I reselect the item, and then close and reopen the grid, it does highlight it, but the first time it doesn't happen.

Thank you.

Let us know how to replicate such problem on our demos:

The same thing happens, the first time when you open the drop-down the item does not highlight and the second time it does.

The first time:

The second time:

However, with a RadzenDropDown de item is highlight always when you open de drop-down.

I see now what you are after, we will do our best to include fix that will highlight the row in one of our next updates.

Ok, thank you very much.