Unplanned
Last Updated: 31 Jan 2023 14:17 by Danijela
Ingerid
Created on: 19 May 2020 07:00
Category: MultiColumnComboBox
Type: Feature Request
2
Autovalidation of user input with Kendo MultiColumnComboBox

I use Kendo MultiColumnComboBox in a form. It's configured such that the user would type in some letters, search results will occur and the user can select the correct one. Then the ID number of the selected option would be saved to an int.

My problem occurs if the user for some reason was to not select one of the options, but instead write in a random text string and click the Submit button of the form. Then the program would try to save that string to an int variable, which would result in the quite unhelpful error message "The value 'Same random string' is not valid for RestaurantId". Even worse, if the user was to write in a random number that did not correspond to a RestaurantId, the web page would break.

I think it would be nice if MultiColumnComboBox had some built-in handler for those cases where the user input does not match any of the options in its dropdown list.

2 comments
Danijela
Posted on: 31 Jan 2023 14:17

I would also like to have some kind of "LimitToList" property that would allow only selections that actually exist. 

Now we get DataValueField when the item is selected from the list, and DataTextField when an arbitrary text is typed in. And there is no way to detect what value is submitted.

Elliot
Posted on: 25 Feb 2022 11:47
We are using Kendo UI for ASP Core but the same applies. We cannot use the MultiColumnComboBox in its current form.