Intersoft WebCombo Documentation
OnKeyDown Property
See Also  Example Send Feedback
ISNet.WebUI.WebCombo Namespace > ClientEvents Class : OnKeyDown Property






Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox. Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")>
<ISNet.EventParameterAttribute("controlId, keyValue")>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.")>
<DefaultValueAttribute()>
Public Property OnKeyDown As String
Visual Basic (Usage)Copy Code
Dim instance As ClientEvents
Dim value As String
 
instance.OnKeyDown = value
 
value = instance.OnKeyDown
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.EventParameterAttribute("controlId, keyValue")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.")]
[DefaultValueAttribute()]
public string OnKeyDown {get; set;}
Delphi 
public read-write property OnKeyDown: String; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")
ISNet.EventParameterAttribute("controlId, keyValue")
NotifyParentPropertyAttribute()
DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.")
DefaultValueAttribute()
public function get,set OnKeyDown : String
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.EventParameterAttribute("controlId, keyValue")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.")]
[DefaultValueAttribute()]
public: __property string* get_OnKeyDown();
public: __property void set_OnKeyDown( 
   string* value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.EventParameterAttribute("controlId, keyValue")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when user is typing in the WebCombo textbox.")]
[DefaultValueAttribute()]
public:
property String^ OnKeyDown {
   String^ get();
   void set (    String^ value);
}

Example

 

The following example shows you how to display a message showing a value that has been entered by user.
C#Copy Code
WebCombo1.LayoutSettings.ClientSideEvents.OnKeyDown = "WebCombo1_OnkeyDown";
The following is the example of the javascript function that is assigned in above event:
JScriptCopy Code
function WebCombo1_OnKeyDown(controlId, keyValue)  
{   
   var combo = ISGetObject("WebCombo1");   
   alert("The value that you entered is " + combo.TextObj.value);   
   
   return true;  
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.