the control
<
telerik:RadComboBox
ID
=
"RadComboBox3"
runat
=
"server"
Width
=
"500px"
Height
=
"150px"
Skin
=
"Hay"
OnClientSelectedIndexChanged
=
"catchSelected"
ChangeTextOnKeyBoardNavigation
=
"false"
Filter
=
"Contains"
EnableAutomaticLoadOnDemand
=
"true"
EmptyMessage
=
"Chose a product.."
ShowMoreResultsBox
=
"true"
ItemsPerRequest
=
"10"
ExpandAnimation-Type
=
"InQuad"
EnableVirtualScrolling
=
"true"
>
<
WebServiceSettings
Method
=
"GetProductNames"
Path
=
"Products.asmx"
/>
</
telerik:RadComboBox
>
and the client function:
function
catchSelected(sender, evntArgs)
{
var
cmb = $telerik.findComboBox(
'RadComboBox3'
);
var
chosen = cmb.get_selectedItem();
if
(chosen) {
alert(chosen.get_text());
}
}
The problem:
i can not determine the selected item if user presses "enter key" on an item, instead of clicking the mouse on that item.
because when ChangeTextOnKeyBoardNavigation is false, Combobox does not change the input box.
do you know how can i find the selected item on pressing the enter key when ChangeTextOnKeyBoardNavigation is false ?