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






This event is fired after an item is selected. This event fired after an item is selected.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<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.Serialization.BinarySerializableAttribute()>
<DescriptionAttribute("This event fired after an item is selected.")>
<DefaultValueAttribute()>
<ISNet.EventParameterAttribute("controlId")>
Public Property OnAfterItemSelected As String
Visual Basic (Usage)Copy Code
Dim instance As ClientEvents
Dim value As String
 
instance.OnAfterItemSelected = value
 
value = instance.OnAfterItemSelected
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[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.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This event fired after an item is selected.")]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId")]
public string OnAfterItemSelected {get; set;}
Delphi 
public read-write property OnAfterItemSelected: String; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
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.Serialization.BinarySerializableAttribute()
DescriptionAttribute("This event fired after an item is selected.")
DefaultValueAttribute()
ISNet.EventParameterAttribute("controlId")
public function get,set OnAfterItemSelected : String
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[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.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This event fired after an item is selected.")]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId")]
public: __property string* get_OnAfterItemSelected();
public: __property void set_OnAfterItemSelected( 
   string* value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[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.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This event fired after an item is selected.")]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId")]
public:
property String^ OnAfterItemSelected {
   String^ get();
   void set (    String^ value);
}

Example

The following is the example on how to assign a javascript function to the client side event after an item has been selected. In this scenario, you need to set the DataValueField is CustomerID and the DataTextField is CompanyName. The message box will display the customer Id after you have selected an item.
C#Copy Code
WebCombo1.LayoutSettings.ClientSideEvents.OnAfterItemsSelected = "WebCombo1_OnAfterItemSelected";
The following is the example of the javascript function that is assigned in above event.
JScriptCopy Code
function WebCombo1_OnAfterItemSelected(controlId) 
{
    var combo = ISGetObject(controlId);

    alert("Selected value is "+combo.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.