Version 6.0.1 Datagrid LoadData apply filter will cause unhandled exception #1610

Closed
opened 2026-01-29 17:56:05 +00:00 by claunia · 31 comments
Owner

Originally created by @kirkone on GitHub (Feb 13, 2025).

Today I updated my Blazor WebAssembly site to dotnet 9 and Radzen.Blazor 6.0.1.

I have a Datagrid with simple filter and implemented the LoadData as described here:
https://blazor.radzen.com/datagrid-loaddata.

The data loads fine but after i input something in a Filter field executing the query will silently break the LoadData Method.

I was able to see the Exeption in the devtools one time that was mentioning that it was not able to load /System.Runtime.dll.

I see it is working on the sample page, but I am not sure if this is already running on version 6.

Could it be related to this here:
https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748
and this:
53e746146b/Radzen.Blazor/DynamicExtensions.cs (L33)

Thank you for your help

Originally created by @kirkone on GitHub (Feb 13, 2025). Today I updated my Blazor WebAssembly site to dotnet 9 and Radzen.Blazor 6.0.1. I have a Datagrid with simple filter and implemented the LoadData as described here: https://blazor.radzen.com/datagrid-loaddata. The data loads fine but after i input something in a Filter field executing the query will silently break the LoadData Method. I was able to see the Exeption in the devtools one time that was mentioning that it was not able to load `/System.Runtime.dll`. I see it is working on the sample page, but I am not sure if this is already running on version 6. Could it be related to this here: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748 and this: https://github.com/radzenhq/radzen-blazor/blob/53e746146bc680b6819987f80fcc72184aeeb18a/Radzen.Blazor/DynamicExtensions.cs#L33 Thank you for your help
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

Indeed our demos are running using latest version. Please provide runnable code demonstrating the problem.

@enchev commented on GitHub (Feb 14, 2025): Indeed our demos are running using latest version. Please provide runnable code demonstrating the problem.
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

Also, all filters with the data type "enum" or "enum?" are broken

@k-Sacr commented on GitHub (Feb 14, 2025): Also, all filters with the data type "enum" or "enum?" are broken
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

oh, and also the filters "DateOnly", "DateOnly?", maybe "DateTime", "DateTime?" do not work

@k-Sacr commented on GitHub (Feb 14, 2025): oh, and also the filters "DateOnly", "DateOnly?", maybe "DateTime", "DateTime?" do not work
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

@k-Sacr We have such demos as well and all of them works normally. For example:
https://blazor.radzen.com/datagrid-enum-filter

@enchev commented on GitHub (Feb 14, 2025): @k-Sacr We have such demos as well and all of them works normally. For example: https://blazor.radzen.com/datagrid-enum-filter
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

@k-Sacr We have such demos as well and all of them works normally. For example: https://blazor.radzen.com/datagrid-enum-filter

Sorry, of course I meant when using LoadData.
Where dynamic linq was used.

@k-Sacr commented on GitHub (Feb 14, 2025): > [@k-Sacr](https://github.com/k-Sacr) We have such demos as well and all of them works normally. For example: https://blazor.radzen.com/datagrid-enum-filter Sorry, of course I meant when using LoadData. Where dynamic linq was used.
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

Quick demo: https://blazor.radzen.com/datagrid-loaddata

https://github.com/user-attachments/assets/e5f2bec2-4920-4b81-8417-857774806901

@using RadzenBlazorDemos.Data
@using RadzenBlazorDemos.Models.Northwind

@inherits DbContextPage

<RadzenButton Text="Reset" Click="@Reset" Style="margin-bottom: 20px;" />
<RadzenDataGrid FilterMode="FilterMode.Advanced" style="height: 335px" @ref="grid" IsLoading=@isLoading Count="@count" Data="@employees" LoadData="@LoadData" AllowSorting="true" AllowFiltering="true" AllowPaging="true" PageSize="4" PagerHorizontalAlign="HorizontalAlign.Center" ColumnWidth="200px">
    <Columns>
        <RadzenDataGridColumn Property="@nameof(Employee.EmployeeID)" Filterable="false" Title="ID" Frozen="true" Width="80px" TextAlign="TextAlign.Center" />
        <RadzenDataGridColumn Title="Photo" Frozen="true" Sortable="false" Filterable="false" Width="80px" TextAlign="TextAlign.Center" >
            <Template Context="data">
                <RadzenImage Path="@data.Photo" class="rz-gravatar" AlternateText="@(data.FirstName + " " + data.LastName)" />
            </Template>
        </RadzenDataGridColumn>
        <RadzenDataGridColumn Property="@nameof(Employee.FirstName)" Title="First Name" Frozen="true" Width="160px"/>
        <RadzenDataGridColumn Property="@nameof(Employee.LastName)" Title="Last Name" Width="160px"/>
        <RadzenDataGridColumn Property="@nameof(Employee.Title)" Title="Job Title" 
            Type="typeof(IEnumerable<string>)" FilterValue="@selectedTitles" FilterOperator="FilterOperator.Contains" Width="200px">
            <FilterTemplate>
                <RadzenDropDown @bind-Value=@selectedTitles Style="width:100%" InputAttributes="@(new Dictionary<string,object>(){ { "aria-label", "select title" }})"
                    Change=@OnSelectedTitlesChange Data="@(titles)" AllowClear="true" Multiple="true" />
            </FilterTemplate>
        </RadzenDataGridColumn>
        <RadzenDataGridColumn Property="@nameof(Employee.TitleOfCourtesy)" Title="Title" Width="120px" />
        <RadzenDataGridColumn Property="@nameof(Employee.BirthDate)" Title="Birth Date" FormatString="{0:d}" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.HireDate)" Title="Hire Date" FormatString="{0:d}" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.Address)" Title="Address" Width="200px" />
        <RadzenDataGridColumn Property="@nameof(Employee.City)" Title="City" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.Region)" Title="Region" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.PostalCode)" Title="Postal Code" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.Country)" Title="Country" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.HomePhone)" Title="Home Phone" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.Extension)" Title="Extension" Width="160px" />
        <RadzenDataGridColumn Property="@nameof(Employee.Notes)" Title="Notes" Width="300px" />
    </Columns>
</RadzenDataGrid>

<RadzenCard class="rz-mt-6">
    <RadzenText TextStyle="TextStyle.H6" TagName="TagName.H2" class="rz-mb-4">Perform custom data-binding</RadzenText>
    <RadzenText TextStyle="TextStyle.Body1">
        1. Set the Data and Count properties.
    </RadzenText>
        <pre class="rz-mt-4 rz-p-4">
            <code>&lt;RadzenDataGrid Count="@@count" Data="@@employees"</code>
        </pre>
    <RadzenText TextStyle="TextStyle.Body1">
        2. Handle the LoadData event and update the Data and Count backing fields (<code>employees</code> and <code>count</code> in this case).
    </RadzenText>
        <pre class="rz-mt-4 rz-p-4">
            <code>
void LoadData(LoadDataArgs args)
{
    var query = dbContext.Employees.AsQueryable();

    if (!string.IsNullOrEmpty(args.Filter))
    {
        query = query.Where(grid.ColumnsCollection);
    }

    if (!string.IsNullOrEmpty(args.OrderBy))
    {
        query = query.OrderBy(args.OrderBy);
    }

    count = query.Count();

    employees = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList();


} 
            </code>
        </pre>
</RadzenCard>
@code {
    RadzenDataGrid<Employee> grid;
    int count;
    IEnumerable<Employee> employees;
    bool isLoading = false;

    List<string> titles = new List<string> {"Sales Representative", "Vice President, Sales", "Sales Manager", "Inside Sales Coordinator" };
    IEnumerable<string> selectedTitles;

    async Task OnSelectedTitlesChange(object value)
    {
        if (selectedTitles != null && !selectedTitles.Any())
        {
            selectedTitles = null;  
        }
        
        await grid.FirstPage();
    }

    async Task Reset()
    {
        grid.Reset(true); 
        await grid.FirstPage(true);
    }

    async Task LoadData(LoadDataArgs args)
    {
        isLoading = true;

        await Task.Yield();

        var query = dbContext.Employees.AsQueryable();

        if (!string.IsNullOrEmpty(args.Filter))
        {
            // Filter via the Where method
            query = query.Where(grid.ColumnsCollection);
        }

        if (!string.IsNullOrEmpty(args.OrderBy))
        {
            // Sort via the OrderBy method
            query = query.OrderBy(args.OrderBy);
        }

        // Important!!! Make sure the Count property of RadzenDataGrid is set.
        count = query.Count();

        // Perform paging via Skip and Take.
        employees = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList();

        isLoading = false;
    }
}

@k-Sacr commented on GitHub (Feb 14, 2025): Quick demo: https://blazor.radzen.com/datagrid-loaddata https://github.com/user-attachments/assets/e5f2bec2-4920-4b81-8417-857774806901 ``` @using RadzenBlazorDemos.Data @using RadzenBlazorDemos.Models.Northwind @inherits DbContextPage <RadzenButton Text="Reset" Click="@Reset" Style="margin-bottom: 20px;" /> <RadzenDataGrid FilterMode="FilterMode.Advanced" style="height: 335px" @ref="grid" IsLoading=@isLoading Count="@count" Data="@employees" LoadData="@LoadData" AllowSorting="true" AllowFiltering="true" AllowPaging="true" PageSize="4" PagerHorizontalAlign="HorizontalAlign.Center" ColumnWidth="200px"> <Columns> <RadzenDataGridColumn Property="@nameof(Employee.EmployeeID)" Filterable="false" Title="ID" Frozen="true" Width="80px" TextAlign="TextAlign.Center" /> <RadzenDataGridColumn Title="Photo" Frozen="true" Sortable="false" Filterable="false" Width="80px" TextAlign="TextAlign.Center" > <Template Context="data"> <RadzenImage Path="@data.Photo" class="rz-gravatar" AlternateText="@(data.FirstName + " " + data.LastName)" /> </Template> </RadzenDataGridColumn> <RadzenDataGridColumn Property="@nameof(Employee.FirstName)" Title="First Name" Frozen="true" Width="160px"/> <RadzenDataGridColumn Property="@nameof(Employee.LastName)" Title="Last Name" Width="160px"/> <RadzenDataGridColumn Property="@nameof(Employee.Title)" Title="Job Title" Type="typeof(IEnumerable<string>)" FilterValue="@selectedTitles" FilterOperator="FilterOperator.Contains" Width="200px"> <FilterTemplate> <RadzenDropDown @bind-Value=@selectedTitles Style="width:100%" InputAttributes="@(new Dictionary<string,object>(){ { "aria-label", "select title" }})" Change=@OnSelectedTitlesChange Data="@(titles)" AllowClear="true" Multiple="true" /> </FilterTemplate> </RadzenDataGridColumn> <RadzenDataGridColumn Property="@nameof(Employee.TitleOfCourtesy)" Title="Title" Width="120px" /> <RadzenDataGridColumn Property="@nameof(Employee.BirthDate)" Title="Birth Date" FormatString="{0:d}" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.HireDate)" Title="Hire Date" FormatString="{0:d}" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.Address)" Title="Address" Width="200px" /> <RadzenDataGridColumn Property="@nameof(Employee.City)" Title="City" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.Region)" Title="Region" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.PostalCode)" Title="Postal Code" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.Country)" Title="Country" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.HomePhone)" Title="Home Phone" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.Extension)" Title="Extension" Width="160px" /> <RadzenDataGridColumn Property="@nameof(Employee.Notes)" Title="Notes" Width="300px" /> </Columns> </RadzenDataGrid> <RadzenCard class="rz-mt-6"> <RadzenText TextStyle="TextStyle.H6" TagName="TagName.H2" class="rz-mb-4">Perform custom data-binding</RadzenText> <RadzenText TextStyle="TextStyle.Body1"> 1. Set the Data and Count properties. </RadzenText> <pre class="rz-mt-4 rz-p-4"> <code>&lt;RadzenDataGrid Count="@@count" Data="@@employees"</code> </pre> <RadzenText TextStyle="TextStyle.Body1"> 2. Handle the LoadData event and update the Data and Count backing fields (<code>employees</code> and <code>count</code> in this case). </RadzenText> <pre class="rz-mt-4 rz-p-4"> <code> void LoadData(LoadDataArgs args) { var query = dbContext.Employees.AsQueryable(); if (!string.IsNullOrEmpty(args.Filter)) { query = query.Where(grid.ColumnsCollection); } if (!string.IsNullOrEmpty(args.OrderBy)) { query = query.OrderBy(args.OrderBy); } count = query.Count(); employees = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList(); } </code> </pre> </RadzenCard> @code { RadzenDataGrid<Employee> grid; int count; IEnumerable<Employee> employees; bool isLoading = false; List<string> titles = new List<string> {"Sales Representative", "Vice President, Sales", "Sales Manager", "Inside Sales Coordinator" }; IEnumerable<string> selectedTitles; async Task OnSelectedTitlesChange(object value) { if (selectedTitles != null && !selectedTitles.Any()) { selectedTitles = null; } await grid.FirstPage(); } async Task Reset() { grid.Reset(true); await grid.FirstPage(true); } async Task LoadData(LoadDataArgs args) { isLoading = true; await Task.Yield(); var query = dbContext.Employees.AsQueryable(); if (!string.IsNullOrEmpty(args.Filter)) { // Filter via the Where method query = query.Where(grid.ColumnsCollection); } if (!string.IsNullOrEmpty(args.OrderBy)) { // Sort via the OrderBy method query = query.OrderBy(args.OrderBy); } // Important!!! Make sure the Count property of RadzenDataGrid is set. count = query.Count(); // Perform paging via Skip and Take. employees = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList(); isLoading = false; } } ```
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

I was able to replicate it - let's put this in a separate issue since this is not related to not finding System.Runtime.dll. As a workaround you can use Where(grid.ColumnCollection) similar to our LoadData demo.

@enchev commented on GitHub (Feb 14, 2025): I was able to replicate it - let's put this in a separate issue since this is not related to not finding System.Runtime.dll. As a workaround you can use Where(grid.ColumnCollection) similar to our LoadData demo.
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

I was able to replicate it - let's put this in a separate issue since this is not related to not finding System.Runtime.dll. As a workaround you can use Where(grid.ColumnCollection) similar to our LoadData demo.

Thx

I understand the reason for dropping the System.Linq.Dynamic.Core dependency, but unfortunately, this change broke all our DataGrid in the project.
But Dynamic LINQ provided support for a wide range of filtering variations, and its removal has significantly impacted functionality.

@k-Sacr commented on GitHub (Feb 14, 2025): > I was able to replicate it - let's put this in a separate issue since this is not related to not finding System.Runtime.dll. As a workaround you can use Where(grid.ColumnCollection) similar to our LoadData demo. Thx I understand the reason for dropping the System.Linq.Dynamic.Core dependency, but unfortunately, this change broke all our DataGrid in the project. But Dynamic LINQ provided support for a wide range of filtering variations, and its removal has significantly impacted functionality.
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

You can still use Dynamic LINQ if you reference it in your project.

@enchev commented on GitHub (Feb 14, 2025): You can still use Dynamic LINQ if you reference it in your project.
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

You can still use Dynamic LINQ if you reference it in your project.

Yes, but that won't fix the DataGrid, will it? I haven't tried it yet.

We use DataGrid with LoadData via ToFilterString (which used dynamic linq if I'm not mistaken), otherwise we would have to write each filter manually.

@k-Sacr commented on GitHub (Feb 14, 2025): > You can still use Dynamic LINQ if you reference it in your project. Yes, but that won't fix the DataGrid, will it? I haven't tried it yet. We use DataGrid with LoadData via ToFilterString (which used dynamic linq if I'm not mistaken), otherwise we would have to write each filter manually.
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods:
https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev
When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours.

@enchev commented on GitHub (Feb 14, 2025): ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours.
Author
Owner

@k-Sacr commented on GitHub (Feb 14, 2025):

ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours.

tried this, i get exception:
System.InvalidOperationException: "Invalid Where selector".

6.0.1 Dont work:

Image

5.9 Work:

Image

Unfortunately I can't provide a demo code quickly, but this is a regular column with the DateOnly type

@k-Sacr commented on GitHub (Feb 14, 2025): > ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours. tried this, i get exception: System.InvalidOperationException: "Invalid Where selector". 6.0.1 Dont work: ![Image](https://github.com/user-attachments/assets/e9476f98-6d22-4cc7-8f0d-e04fe87f8feb) 5.9 Work: ![Image](https://github.com/user-attachments/assets/e64657b0-66fd-4035-9456-234c4eda7677) Unfortunately I can't provide a demo code quickly, but this is a regular column with the DateOnly type
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

The problem with Dates is already fixed and it will be release later today:
60a3789e9c

@enchev commented on GitHub (Feb 14, 2025): The problem with Dates is already fixed and it will be release later today: https://github.com/radzenhq/radzen-blazor/commit/60a3789e9c701d9ea06fd97212cfabc3aaab1514
Author
Owner

@kirkone commented on GitHub (Feb 14, 2025):

Is the current documentation site running on version 6 already?

@kirkone commented on GitHub (Feb 14, 2025): Is the current documentation site running on version 6 already?
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

Yes, it's running latest version as always.

@enchev commented on GitHub (Feb 14, 2025): Yes, it's running latest version as always.
Author
Owner

@kirkone commented on GitHub (Feb 14, 2025):

Is it also running on dotnet 9?

@kirkone commented on GitHub (Feb 14, 2025): Is it also running on dotnet 9?
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

Yes. Maybe you should check the code for reference. @kirkone Can you verify if Radzen.Blazor 6.0.3 works for your case?

@enchev commented on GitHub (Feb 14, 2025): Yes. Maybe you should check the code for reference. @kirkone Can you verify if Radzen.Blazor 6.0.3 works for your case?
Author
Owner

@bdovaz commented on GitHub (Feb 14, 2025):

ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours.

tried this, i get exception: System.InvalidOperationException: "Invalid Where selector".

6.0.1 Dont work:

Image

5.9 Work:

Image

Unfortunately I can't provide a demo code quickly, but this is a regular column with the DateOnly type

Same problem:

6.0.3 (FAILS):

it => RoleNames.Contains("testRoleName")

5.9.9 (WORKS):

RoleNames.Contains("testRoleName")

EDIT: I see that the example has changed: https://blazor.radzen.com/datagrid-loaddata?theme=material3

This change needs to be made:

Image

But even so, I still have problems... When sorting for example it fails with:

Image

@bdovaz commented on GitHub (Feb 14, 2025): > > ToFilterString() will output a string that can work in both our extension method and Dynamic LINQ methods: https://forum.radzen.com/t/just-released-our-new-major-version-of-radzen-blazor-6-0-0-without-reference-to-system-linq-dynamic-core-nuget-package/19748?u=enchev When you reference System.Linq.Dynamic.Core, their method will be picked instead of ours. > > tried this, i get exception: System.InvalidOperationException: "Invalid Where selector". > > 6.0.1 Dont work: > > ![Image](https://github.com/user-attachments/assets/e9476f98-6d22-4cc7-8f0d-e04fe87f8feb) > > 5.9 Work: > > ![Image](https://github.com/user-attachments/assets/e64657b0-66fd-4035-9456-234c4eda7677) > > Unfortunately I can't provide a demo code quickly, but this is a regular column with the DateOnly type Same problem: 6.0.3 (FAILS): it => RoleNames.Contains("testRoleName") 5.9.9 (WORKS): RoleNames.Contains("testRoleName") **EDIT:** I see that the example has changed: https://blazor.radzen.com/datagrid-loaddata?theme=material3 This change needs to be made: ![Image](https://github.com/user-attachments/assets/1397dd44-5c65-41ed-bdfa-e3c969239828) But even so, I still have problems... When sorting for example it fails with: ![Image](https://github.com/user-attachments/assets/5af8903a-b9b5-4fa8-9051-c7c3917da2bb)
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

The example works correctly with both filtering and sorting. We cannot do much if we cannot reproduce the problem - you can debug also your app using our source code and submit pull request with a fix.

@enchev commented on GitHub (Feb 14, 2025): The example works correctly with both filtering and sorting. We cannot do much if we cannot reproduce the problem - you can debug also your app using our source code and submit pull request with a fix.
Author
Owner

@bdovaz commented on GitHub (Feb 14, 2025):

The example works correctly with both filtering and sorting. We cannot do much if we cannot reproduce the problem - you can debug also your app using our source code and submit pull request with a fix.

I base myself on LoadData example that I have put in my previous message and in the case of a field that is of type IEnumerable<string> I base myself on this other example to make a custom filter: https://blazor.radzen.com/datagrid-filter-template?theme=material3

Specifically the Custom filtering template with Custom Command example.

If you look at that example @enchev, the filter of the column Work Status has stopped working, something has happened in 6.x that has broken that example and it will have relation in part with what happens to me.

@bdovaz commented on GitHub (Feb 14, 2025): > The example works correctly with both filtering and sorting. We cannot do much if we cannot reproduce the problem - you can debug also your app using our source code and submit pull request with a fix. I base myself on `LoadData` example that I have put in my previous message and in the case of a field that is of type `IEnumerable<string>` I base myself on this other example to make a custom filter: https://blazor.radzen.com/datagrid-filter-template?theme=material3 Specifically the `Custom filtering template with Custom Command` example. If you look at that example @enchev, the filter of the column `Work Status` has stopped working, something has happened in 6.x that has broken that example and it will have relation in part with what happens to me.
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

@bdovaz I see now what you are after - we will do our best to provide fix for this case ASAP.

@enchev commented on GitHub (Feb 14, 2025): @bdovaz I see now what you are after - we will do our best to provide fix for this case ASAP.
Author
Owner

@kirkone commented on GitHub (Feb 14, 2025):

Yes. Maybe you should check the code for reference. @kirkone Can you verify if Radzen.Blazor 6.0.3 works for your case?

I am not able to reproduce the runtime.dll error.
But found something new:
Using simple filter mode filtering on columns works if every row has a value in in this column.
If there is a null value in at least one row it breaks.

Tried with 6.0.3

Switched back to 5.9.9 and all filters work with the same codebase

@kirkone commented on GitHub (Feb 14, 2025): > Yes. Maybe you should check the code for reference. [@kirkone](https://github.com/kirkone) Can you verify if Radzen.Blazor 6.0.3 works for your case? I am not able to reproduce the runtime.dll error. But found something new: Using simple filter mode filtering on columns works if every row has a value in in this column. If there is a null value in at least one row it breaks. Tried with 6.0.3 Switched back to 5.9.9 and all filters work with the same codebase
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

@kirkone is the row (data item itself) null or the property value?

@enchev commented on GitHub (Feb 14, 2025): @kirkone is the row (data item itself) null or the property value?
Author
Owner

@kirkone commented on GitHub (Feb 14, 2025):

only the value regarding to the column where the filter has applied is null in my case. Columns where every row has a value in this field are working.

@kirkone commented on GitHub (Feb 14, 2025): only the value regarding to the column where the filter has applied is null in my case. Columns where every row has a value in this field are working.
Author
Owner

@enchev commented on GitHub (Feb 14, 2025):

All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else.

@enchev commented on GitHub (Feb 14, 2025): All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else.
Author
Owner

@kirkone commented on GitHub (Feb 14, 2025):

All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else.

Thanks for the fix.

I still have issues with some columns but i cannot see what the difference between the working ones is.
I will investigate further and will open a new issue with the details.

As mentioned above, version 5.9.9 is working with the exact same code and data.

@kirkone commented on GitHub (Feb 14, 2025): > All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else. Thanks for the fix. I still have issues with some columns but i cannot see what the difference between the working ones is. I will investigate further and will open a new issue with the details. As mentioned above, version 5.9.9 is working with the exact same code and data.
Author
Owner

@bdovaz commented on GitHub (Feb 15, 2025):

All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else.

@enchev the error I mention in this example still exists:

https://blazor.radzen.com/datagrid-filter-template?theme=material3

Specifically the Custom filtering template with Custom Command example.

If you look at that example @enchev, the filter of the column Work Status has stopped working, something has happened in 6.x that has broken that example and it will have relation in part with what happens to me.

Image

@bdovaz commented on GitHub (Feb 15, 2025): > All reported problems in this thread are fixed in Radzen.Blazor 6.0.4 and I'm closing this. Please open separate issues if you find something else. @enchev the error I mention in this example still exists: > https://blazor.radzen.com/datagrid-filter-template?theme=material3 > > Specifically the `Custom filtering template with Custom Command` example. > > If you look at that example @enchev, the filter of the column Work Status has stopped working, something has happened in 6.x that has broken that example and it will have relation in part with what happens to me. ![Image](https://github.com/user-attachments/assets/9a913cb3-f632-47b0-87f3-b4fd55161c43)
Author
Owner

@enchev commented on GitHub (Feb 15, 2025):

@bdovaz Interesting, it works locally but not when deployed - I'll check it immediately.

UPDATE: In this particular case we will need a bit more time to provide fix. I'll write here when we are ready, in the meantime you can either use Dynamic LINQ Where() instead our or you can go back to 5.x version of Radzen.Blazor.

@enchev commented on GitHub (Feb 15, 2025): @bdovaz Interesting, it works locally but not when deployed - I'll check it immediately. UPDATE: In this particular case we will need a bit more time to provide fix. I'll write here when we are ready, in the meantime you can either use Dynamic LINQ Where() instead our or you can go back to 5.x version of Radzen.Blazor.
Author
Owner

@bdovaz commented on GitHub (Feb 15, 2025):

No problem I'm still on 5.x, I have a PR with renovate for 6.x so it will update itself when you release a new 6.x with a fix.

Thanks!

@bdovaz commented on GitHub (Feb 15, 2025): No problem I'm still on 5.x, I have a PR with renovate for 6.x so it will update itself when you release a new 6.x with a fix. Thanks!
Author
Owner

@enchev commented on GitHub (Feb 15, 2025):

@bdovaz I've updated the demo for now to use strongly typed expressions until we have solution for strings.

@enchev commented on GitHub (Feb 15, 2025): @bdovaz I've updated the demo for now to use strongly typed expressions until we have solution for strings.
Author
Owner

@enchev commented on GitHub (Feb 17, 2025):

@bdovaz Both the functionality and the demo are restored in our just released 6.0.7 version.

@enchev commented on GitHub (Feb 17, 2025): @bdovaz Both the functionality and the demo are restored in our just released 6.0.7 version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1610