I am using RC Q2 2010 Net 4
I am using a combobox as a lookup that automatically fills with data from a SQL Table so that when a user begins typing in the box the data filters. Everything works great as long as the user SELECTS the item from the dropdown list. However, if the user types the exact item in the box and the dropdown filters to the exact text and the user hits the enter key and does not select the item from the list, the box queries all items in the table and not just the item that was typed.
For example, the CB we are using lists data from a user table with a field called LastName.
When the user starts typing 'bro' the box filters the list and shows all users that have a last name that begins with 'bro'
brown
browning
brownly
If the user selects browning from the list, the correct user data is queried and returned.
However, if the user types the entire name browning and hits the enter key instead of selecting it from the dropdown list, all users are returned.
Here is the ASPX code for my ComboBox:
Is there a way to alow the use of the enter key?
I am using a combobox as a lookup that automatically fills with data from a SQL Table so that when a user begins typing in the box the data filters. Everything works great as long as the user SELECTS the item from the dropdown list. However, if the user types the exact item in the box and the dropdown filters to the exact text and the user hits the enter key and does not select the item from the list, the box queries all items in the table and not just the item that was typed.
For example, the CB we are using lists data from a user table with a field called LastName.
When the user starts typing 'bro' the box filters the list and shows all users that have a last name that begins with 'bro'
brown
browning
brownly
If the user selects browning from the list, the correct user data is queried and returned.
However, if the user types the entire name browning and hits the enter key instead of selecting it from the dropdown list, all users are returned.
Here is the ASPX code for my ComboBox:
<
telerik:RadComboBox
ID
=
"rcb_Users"
Runat
=
"server"
AutoPostBack
=
"True"
DataSourceID
=
"sds_UserList"
DataTextField
=
"UserName"
DataValueField
=
"UserName"
EmptyMessage
=
"Select User"
Height
=
"150px"
Skin
=
"WebBlue"
EnableAutomaticLoadOnDemand
=
"True"
EnableVirtualScrolling
=
"True"
ItemsPerRequest
=
"10"
ShowMoreResultsBox
=
"True"
>
</
telerik:RadComboBox
>
Is there a way to alow the use of the enter key?