Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104666
    wolf.t
    Participant

    Hello

    I’m trying to set filters in my blazor grid, so I’m calling grid.AddFilter() and that works well enough.
    However: Calling the method like grid.AddFilter(nameof(Class.Property), $"contains Andrew or contains Nancy"); sets the filter of the grid to: contains Andrew *AND* contains Nancy.

    The problem being the filter conditions are set to *AND* instead of *OR*.

    Any tips?

    Cheers

    #104668

    Hi,

    I couldn’t reproduce your problem, may you send us a demo project or a sample component here: support@jqwidgets.com?
    Click here to download a simple demo that shows your desired behaviour: https://easyupload.io/b6t1o5

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

    #104670
    wolf.t
    Participant

    Here’s a repo with a demo project: https://github.com/DiawaKG/reproduction-smarthtml-grid-addfilter-incorrect-conditions
    The main difference is that I’m using Blazor WebAssembly.

    I think it’s only a visual bug if the state of the filter is displayed in the GridHeader as opposed to the column itself (like in your example).
    You’ll see that the grid sets and applies the filter correctly – just the dropdown for AND/OR is not set correctly in the GridHeader.

    Thanks

    #104671

    Hi,

    Thank you for reporting this. It seems that the GridHeader causes the problem. When I remove the GridHeader property the problem disappears.
    I have opened a work item for this!

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.