GithubHelp home page GithubHelp logo

Comments (7)

AlexeyBoyko avatar AlexeyBoyko commented on June 20, 2024

By the way, I've made a comparison of the code introduced by this commit (65b0caa) which meant to fix the #87 issue and it seems that the current state of respective code isn't much different, except for the the variable _sequence which was eliminated since and replaced with explicit numbers. So, if it is broken then it must be for some other reason... so I wonder what could it be?

from grid.blazor.

AlexeyBoyko avatar AlexeyBoyko commented on June 20, 2024

P.S. Just in case, my app is server-side Blazor, while in the original issue it was probably client side WASM (judging by the link to documentation provided in the question).

from grid.blazor.

gustavnavar avatar gustavnavar commented on June 20, 2024

I've tested some examples with custom filters in a server-side Blazor project. But they work fine.

By the way there is published sample here. The Customer column uses a custom filter with no errors.

Could you send a sample project including a grid that produces the error?

from grid.blazor.

AlexeyBoyko avatar AlexeyBoyko commented on June 20, 2024

Thank you for the answer. I attach page's razor and cs files and the filter widget component.
dropDownFilter.zip. If the reason for the bug is not clear from these sources, I can make a separate sample project, just let me know.

from grid.blazor.

gustavnavar avatar gustavnavar commented on June 20, 2024

You are using UserGroup as generic type parameter of the DropdownFilter class in the page Users.razor.cs:

_customFilters.Add(filterWidgetName, typeof(DropdownFilter<UserGroup>));

You must use UserViewModel as generic type parameter:

 _customFilters.Add(filterWidgetName, typeof(DropdownFilter<UserViewModel>));

from grid.blazor.

gustavnavar avatar gustavnavar commented on June 20, 2024

By the way, I recommend using a new database context and a new repository for the GridCoreServer constructor for Server Blazor projects, mainly for CRUD support.

Read from this commentary

from grid.blazor.

AlexeyBoyko avatar AlexeyBoyko commented on June 20, 2024

Thank you kindly, it works!

from grid.blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.