All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
I have a RadSearchBox. The user can start typing and a list of selections comes up.
Is there a way I can restrict the user from typing in invalid choices? I want to force them to choose one of the items on the list.
Any ideas on the best way to approach this would be appreciated!
<
telerik:RadSearchBox
HighlightFirstMatch
=
"true"
OnClientLoad
"OnClientLoad"
... >
</
>
<script>
function
OnClientLoad(sender, args) {
// clear the text if there is no selected item
if
(!sender._highlightedItem) {
sender.get_inputElement().value =
""
;
}
OnClientSearch(sender, args) {
// prevent postback if no item is selected
sender._postBackOnSearch =
false
else
{
true
</script>