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






This event is fired when the control's focus is lost. This event fired when the control's focus is lost.

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")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("This event fired when the control's focus is lost.")>
<ISNet.EventParameterAttribute("controlId")>
Public Property OnLostFocus As String
Visual Basic (Usage)Copy Code
Dim instance As ClientEvents
Dim value As String
 
instance.OnLostFocus = value
 
value = instance.OnLostFocus
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")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("This event fired when the control's focus is lost.")]
[ISNet.EventParameterAttribute("controlId")]
public string OnLostFocus {get; set;}
Delphi 
public read-write property OnLostFocus: 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")
DefaultValueAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("This event fired when the control's focus is lost.")
ISNet.EventParameterAttribute("controlId")
public function get,set OnLostFocus : 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")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("This event fired when the control's focus is lost.")]
[ISNet.EventParameterAttribute("controlId")]
public: __property string* get_OnLostFocus();
public: __property void set_OnLostFocus( 
   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")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("This event fired when the control's focus is lost.")]
[ISNet.EventParameterAttribute("controlId")]
public:
property String^ OnLostFocus {
   String^ get();
   void set (    String^ value);
}

Example

 

The following example shows you how to display a message box when the combo is lost focus.
C#Copy Code
WebCombo1.LayoutSettings.ClientSideEvents.OnLostFocus = "WebCombo1_OnLostFocus";
The following is the example of the javascript function that is assigned in above event.
JScriptCopy Code
function WebCombo1_OnLostFocus(controlId)  
{  
    var WebCombo1 = ISGetObject(controlId); 
    alert("WebCombo is lost focus!"); 
    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.