All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Good morning
I shall create a functionality for my users: at double click on RadComboBox (with the dropdown close) the combo is cleared.
ComboBoxs don't have client-side events as double click, right click, or others events that I can use.
Can you help me? How can I do this directly with combo?
<telerik:RadComboBox ID=
"RadCombobox1"
OnClientLoad=
"OnClientLoad"
runat=
"server"
AllowCustomText=
"true"
>
<Items>
<telerik:RadComboBoxItem Text=
"Item1"
/>
</Items>
</telerik:RadComboBox>
<input onclick=
"clearCombo(); return false;"
value=
"Clear Combo"
type=
"button"
<script>
function
OnClientLoad(combo, args) {
var
comboWrapper = combo.get_element();
$telerik.$(comboWrapper).dblclick(
() {
combo.clearSelection();
});
}
</script>