KaxComboBoxOnClientDropDownOpening Property |
The client-side event that is fired before the dropdown of the combobox is
opened.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic string OnClientDropDownOpening { get; set; }
Public Property OnClientDropDownOpening As String
Get
Set
public:
property String^ OnClientDropDownOpening {
String^ get ();
void set (String^ value);
}
member OnClientDropDownOpening : string with get, set
Property Value
Type:
String
Remarks
The event handler receives two parameter: the instance of the combobox
client-side object and event args. The event can be cancelled - simply set args.set_cancel to true args.set_cancel(true);
from the event handler and the combobox dropdown will not be opened.
Examples<script language="javascript">
function HandleOpen(sender,args)
{
if (someCondition)
{
args.set_cancel(true);
}
else
{
alert("Opening combobox with " + comboBox.get_items().get_count() + " items");
}
}
</script>
<kettic:kaxcombobox
id="KaxComboBox1"
Runat="server"
OnClientDropDownOpening="HandleOpen">
</kettic:kaxcombobox>
See Also