RadzenDropDownDataGrid not working in some scenarios in 5.6.10

I upgraded to latest nuget 5.6.10 and that broke the RadzenDropDownDataGrid.. Going back to 5.6.8 got it working again. (didnt test 5.6.9)

it is hard to explain, but I update a second dropdown when the first is selected. and in some cases it throws an error so the second dropdown does not work,

I just thought I mention it, ( i do not have any error msg to share)

found the error I got

errorDetection.js:5 [2024-12-02T20:44:05.681Z] Error: Neither of the types 'String' and 'Int32' converts to the other (at index 1) at System.Linq.Dynamic.Core.Parser.ExpressionParser.GenerateConditional(Expression test, Expression expressionIfTrue, Expression expressionIfFalse, Boolean nullPropagating, Int32 errorPos) at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseParenExpression() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseArithmetic() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAdditive() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseShiftOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseComparisonOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLogicalAndOrOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIn() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAndOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLambdaOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseNullCoalescingOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator() at System.Linq.Dynamic.Core.Parser.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(Type delegateType, ParsingConfig parsingConfig, Boolean createParameterCtor, ParameterExpression parameters, Type resultType, String expression, Object values) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(ParsingConfig parsingConfig, Boolean createParameterCtor, ParameterExpression parameters, Type resultType, String expression, Object values) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(ParsingConfig parsingConfig, Boolean createParameterCtor, Type itType, Type resultType, String expression, Object values) at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where(IQueryable source, ParsingConfig config, String predicate, Object args) at Radzen.QueryableExtension.Where(IQueryable source, String property, String value, StringFilterOperator op, FilterCaseSensitivity cs) at Radzen.DropDownBase1.get_View() at Radzen.DropDownBase1.SetSelectedIndexFromSelectedItem() at Radzen.DropDownBase1.SelectItem(Object item, Boolean raiseChange) at Radzen.Blazor.RadzenDropDownDataGrid1.OnRowSelect(Object item) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Radzen.Blazor.RadzenDataGrid1.OnRowSelect(TItem item, Boolean raiseChange) at Radzen.Blazor.RadzenDataGrid1.OnRowClick(DataGridRowMouseEventArgs1 args) at Radzen.Blazor.RadzenDataGrid1.OnClick(RadzenDataGridColumn`1 Column, TItem Item, MouseEventArgs args) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) blazor.web.js:1 [2024-12-02T20:44:07.595Z] Information: Connection disconnected. blazor.web.js:1 Uncaught Error: No interop methods are registered for renderer 1 at A (blazor.web.js:1:13622) at blazor.web.js:1:13528 at D (blazor.web.js:1:13711) at R (blazor.web.js:1:13502) at P.dispatchGlobalEventToAllElements (blazor.web.js:1:16123) at P.onGlobalEvent (blazor.web.js:1:15332) blazor.web.js:1 Uncaught (in promise) Error: Cannot send data if the connection is not in the 'Connected' State. at An.send (blazor.web.js:1:84002) at vn._sendMessage (blazor.web.js:1:61630) at vn._sendWithProtocol (blazor.web.js:1:61720) at vn.send (blazor.web.js:1:61828) at Uo.beginInvokeDotNetFromJS (blazor.web.js:1:137960) at w.invokeDotNetMethodAsync (blazor.web.js:1:3978) at w.invokeDotNetStaticMethodAsync (blazor.web.js:1:3346) at e.invokeMethodAsync (blazor.web.js:1:2088) at HTMLDocument. ((index):255:20)

I was able to replicate the problem - fix will be published later today.

Btw. can you post what you have specified as TextProperty and what's the type of this property? I'm not sure if I've found the right problem.

sending the two grids involved

 <RadzenDropDownDataGrid AllowClear="true"
                         TabIndex="4"
                         @bind-Value=AgrDto.OrdNo
                         TModel="OrderComboDto"
                         AllowVirtualization="true"
                         Style="max-width:250px;display:block"
                         @ref="DropdownDataGridOrd"
                         Data=@ords
                         Change="OnOrderComboChangeAsync"
                         TextProperty="OrdNo"    
                         ValueProperty="OrdNo"
                         Placeholder=@ordPlaceholder
                         AllowFiltering="true"
                         AllowFilteringByAllStringColumns="true"
                         FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                         Name="DropDownOrds"
                         >
  
     <Columns>
         <RadzenDropDownDataGridColumn Property="OrdNoText" Title="Ordernr" Width="50px" />
         <RadzenDropDownDataGridColumn Property="Nm" Title="Kund" Width="200px" />
         <RadzenDropDownDataGridColumn Property="Inf" Title="Benämning" Width="400px" />
     </Columns>
     <ValueTemplate Context="datao">
         @($"{datao.OrdNo} - {datao.Nm} - {datao.Inf}")
     </ValueTemplate>
 </RadzenDropDownDataGrid>

 <RadzenDropDownDataGrid TabIndex="5"
                         Style="max-width:250px"
                         @bind-Value=AgrDto.ProdNo
                         @ref="DropdownDataGridProd"
                         AllowVirtualization="true"
                         Data=@prods
                         Change="OnProdComboChangeAsync"
                         TextProperty="Descr"
                         ValueProperty="ProdNo"
                         Placeholder=@prodPlaceholder
                         AllowColumnResize="true"
                         FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                         AllowFilteringByAllStringColumns="true"
                         Name="DropDownProds">
   
     <Columns>
         <RadzenDropDownDataGridColumn Property="ProdNo" Title="ProdNo" Width="50px" />
         <RadzenDropDownDataGridColumn Property="Descr" Title="Produktbenämning" Width="400px" />
     </Columns>
     <ValueTemplate Context="data">
         @($"{data.ProdNo} - {data.Descr}")
     </ValueTemplate>

 </RadzenDropDownDataGrid>

What is the type of this property?

public int? OrdNo { get; set; }

I've verified this and it seems that such case never worked:



Use only string properties for TextProperty, I see that you have OrdNoText, most probably this should be used.

ok, it is working for me in 5.6.8 so I will stick with that version for now.
i will ll look into it again if I need to upgrade.

thanks for your anwers