Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binding this to an MVC view for a dynamic ASP MVC core view #1

Closed
fasteddys opened this issue May 4, 2023 · 1 comment
Closed

binding this to an MVC view for a dynamic ASP MVC core view #1

fasteddys opened this issue May 4, 2023 · 1 comment

Comments

@fasteddys
Copy link

fasteddys commented May 4, 2023

Hello how can we bind the query to take dynamic query, based on user selection

Below is an example, can you help with a sample on how this accept user selected options on an album or dynamic/expando object

I can share a link also...

image

@fasteddys fasteddys changed the title binding this to an MVC view for a dynamic ASP view binding this to an MVC view for a dynamic ASP MVC core view May 4, 2023
@pdevito3
Copy link
Owner

pdevito3 commented May 4, 2023

I'm not too familiar with MVC, but I'd expect that you could bind each of those controls to an object that gets passed in wherever your queryable is for the page and they can be transformed appropriately (or maybe you even build in transformation methods to the controls)

Regardless, all QueryKit is doing is taking in a string with the QueryKit syntax and parsing it to an expression that can be used on a queryable. If you can create that filter string from binded values from your controls, that's all you'd need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants