KaxComboBoxOnClientDropDownClosing Property |
The client-side event that is fired before the dropdown of the combobox is
closed.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic string OnClientDropDownClosing { get; set; }
Public Property OnClientDropDownClosing As String
Get
Set
public:
property String^ OnClientDropDownClosing {
String^ get ();
void set (String^ value);
}
member OnClientDropDownClosing : 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 closed.
Examples<script language="javascript">
function HandleClose(sender, args)
{
if (someCondition)
{
args.set_cancel(true);
}
else
{
alert("Closing combobox with " + sender.get_items().get_count() + " items");
}
}
</script>
<kettic:kaxcombobox
id="KaxComboBox1"
Runat="server"
OnClientDropDownClosing="HandleClose">
</kettic:kaxcombobox>
See Also