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

ComboBox - allow to auto-select first value and check that the value is really in the collection #303

Closed
tomasherceg opened this issue Jan 10, 2017 · 2 comments

Comments

@tomasherceg
Copy link
Member

We should add the AutoSelectFirstValue to the ComboBox control, because currently you have to initialize the SelectedValue property yourself in the viewmodel.

Also, a property ValidateSelectedValue would be useful - the ComboBox could check that the SelectedValue is really present in the DataSource collection, and throw an exception.

@tomasherceg
Copy link
Member Author

This works automatically on the client side.
On the server side, the control should validate the value and add an error in the ModelState when the ValidateSelectedValue property is true.

@tomasherceg tomasherceg added this to the Version 1.2 milestone Apr 9, 2017
@tomasherceg
Copy link
Member Author

In order to preserve the remains of my mental integrity, most of which I have lost when digging into Knockout JS source codes of the options binding, I am closing this issue and I promise that I will never suggest any ComboBox enhancements.

The hell is real and closer that you might expect.

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

No branches or pull requests

1 participant