I would like to implement a feature that depends on what user types in -- so I need to constantly check the contents of the input box. The obvious way of doing it is by running a JS function invoked by the onkeyup (or onkeypress, etc) but AutoCompleteBox is not firing the event.
A snippet of my code:
<
script
>
function ChangeTest() {
console.log('changed');
}
</
script
>
<
telerik:RadAutoCompleteBox
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"RadAutoCompleteBox1"
autopostback
=
"true"
DataSourceID
=
"SqlDataSource1"
DataTextField
=
"field1"
DataValueField
=
"field2"
InputType
=
"Token"
Width
=
"100%"
DropDownWidth
=
"150px"
OnEntryAdded
=
"RadAutoCompleteBox1_EntryAdded"
OnEntryRemoved
=
"RadAutoCompleteBox1_EntryRemoved"
OnClientEntryAdded
=
"CheckEntry"
OnClientEntryRemoved
=
"CheckEntry"
onkeyup
=
"ChangeTest"
>
What am I doing wrong?
Thanks!