I have a custom ascx control that has a radComboBox. This is my code for the combo box and javascript code:
The problem I am having is the combo box keeps closing after each single selection. If I place this same code on a aspx page it works as expected, I can check multiple items before the box closes. What do I have to do to keep the combo box from closing when used in an ascx control place on an aspx page.
<
telerik:RadComboBox
ID
=
"radWQStatus"
runat
=
"server"
AllowCustomText
=
"false"
Width
=
"300px"
DropDownWidth
=
"350px"
MaxHeight
=
"300px"
NoWrap
=
"true"
HighlightTemplatedItems
=
"true"
ExpandDirection
=
"Down"
ExpandDelay
=
"0"
CollapseDelay
=
"0"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"false"
AutoPostBack
=
"true"
OnClientDropDownClosing
=
"OnClientDropDownClosingWQS"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Value1"
Value
=
"1"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Value2"
Value
=
"2"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Value3"
Value
=
"3"
/>
</
Items
>
</
telerik:RadComboBox
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function OnClientDropDownClosingWQS(sender, args)
{
if (args.get_domEvent().target == sender.get_imageDomElement()) {
args.set_cancel(false);
}
else {
args.set_cancel(true);
}
}
</
script
>
The problem I am having is the combo box keeps closing after each single selection. If I place this same code on a aspx page it works as expected, I can check multiple items before the box closes. What do I have to do to keep the combo box from closing when used in an ascx control place on an aspx page.