RadzenDropDownDataGrid @bind-SelectedItem fails

In the version 5.1.7 the property @bind-SelectedItem fails if used in the 'RadzenDropDownDataGrid' component.

Please provide details about your issue and do not open multiple threads/posts for the same or we will have no other option but discontinue your account.

ok, sorry.

I didn't get any bugs on the console. But my program stops.

With such description we cannot help much - check our forum FAQ on how to improve your report.

I have this example where you can reproduce the error:

@page "/test/"

<RadzenLabel Text="Select Value" Component="DropDownDataGridBindValue" />
<RadzenDropDownDataGrid @bind-Value=@value Data=@companyNames Name="DropDownDataGridBindValue" @bind-SelectedItem="itemSelected" />

@code {
string value = "marzo";
IEnumerable companyNames;
object itemSelected;

protected override async Task OnInitializedAsync()
{
    await base.OnInitializedAsync();
            
    companyNames = new List<string> { "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto" };
}

}

This code will cause most probably endless binding loop since you have RadzenDropDownDataGrid bound to collection of primitive type (string in this case), you have two-way binding for Value (@bind-Value) to value variable which is "marzo" while on the other hand you have two-way binding for SelectedItem also to itemSelected variable which is null. You can simply remove @bind-SelectedItem="itemSelected".

Thank you for your reply.
But the example I've given you isn't really the one I'm using.
I use complex types.
I send you an image of what worked for me in previous versions and now it doesn't.
If I remove the line @bind-SelectedItem I don't get an error anymore but I need it.

In version 4.18.0 this worked fine.

Fixed and the fix will be released before the end of the week:

I'll try it out when the new version comes out.
Thanks a lot!