Skip to content

<select multiple @bind> in pure .razor page #15405

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

Closed
niconico49 opened this issue Oct 25, 2019 · 3 comments
Closed

<select multiple @bind> in pure .razor page #15405

niconico49 opened this issue Oct 25, 2019 · 3 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Milestone

Comments

@niconico49
Copy link

<select multiple @Bind> in pure .razor page

is possible @Bind the selected multiple values with some internal variable?
normally the select @Bind an internal string variable, but how do same thing with multiple selected row? there are some solution without the .cshtml, @model implementation and using?

because if I try to use an array like IList the runtime give me an error like:
System.InvalidOperationException: The type 'System.Collections.Generic.IList`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' does not have an associated TypeConverter that supports conversion from a string. Apply 'TypeConverterAttribute' to the type to register a converter.

@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Oct 25, 2019
@javiercn
Copy link
Member

@niconico49 thanks for contacting us.

That is not a currently supported scenario I believe.

@SteveSandersonMS We might be able to support this through element.selectedOptions?

@javiercn javiercn added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Oct 25, 2019
@javiercn javiercn added this to the Backlog milestone Oct 25, 2019
@SteveSandersonMS
Copy link
Member

@javiercn Yes, we certainly could implement some support for this. I think it's reasonable for this to be a backlog item currently.

@SteveSandersonMS
Copy link
Member

I think this is a duplicate of #5519

@SteveSandersonMS SteveSandersonMS added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Oct 7, 2020
@ghost ghost added the Status: Resolved label Oct 7, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants