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

Generic Typing for SelectList bound value #1227

Merged
merged 5 commits into from Aug 13, 2020

Conversation

DumberDrummer
Copy link
Contributor

  • Changed "SelectedValue" type and all other necessary type references to a generic type
  • Updated Documentation and example pages to match
  • Using just "object" threw errors regarding the eventcallbacks when trying to bind datatypes that were not objects
  • Allows binding of, say, EF Entity properties directly to select list output.

I have some other changes (improvements?) that exist in my custom version of this component, but I have not been able to get selenium or jekyll to work on windows according to the contributing instructions, and so I decided to limit to a small change for my first contribution.

Thank you for all your hard work, I hope this small bit helps!

DumberDrummer and others added 5 commits August 7, 2020 18:56
Allows the binding of the intended output value type directly instead of capturing in a generic object to be projected later. This makes it easier to bind directly to an object field or property.

This is part of a custom version of the selectlist I am using in production. I would like to provide the rest of it if this is well received.
Had the wrong check for ValueField being null.
@stsrki stsrki mentioned this pull request Aug 13, 2020
84 tasks
@stsrki
Copy link
Collaborator

stsrki commented Aug 13, 2020

Tested and it's working fine. Thank you!

@stsrki stsrki merged commit 8c3ad71 into Megabit:dev092 Aug 13, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants