Click or drag to resize
KaxComboBoxOnClientDropDownOpening Property
The client-side event that is fired before the dropdown of the combobox is opened.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientDropDownOpening { 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
[New Example]
<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