Intersoft WebScheduler Documentation
OnBeforeAdd Property
See Also  Example Send Feedback
ISNet.WebUI.WebScheduler Namespace > WebSchedulerClientSideEvents Class : OnBeforeAdd Property






Glossary Item Box

Gets or sets the event handler before insert is executed. Gets or sets the event handler before update is executed.

Syntax

Visual Basic (Declaration) 
<System.ComponentModel.DescriptionAttribute("Gets or sets the event handler before insert is executed.")>
<System.ComponentModel.NotifyParentPropertyAttribute(True)>
<System.ComponentModel.DefaultValueAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")>
<ISNet.Serialization.XmlSerializableAttribute()>
<System.ComponentModel.CategoryAttribute("Client Side Events")>
<ISNet.EventParameterAttribute("controlId, evt")>
Public Property OnBeforeAdd As System.String
Visual Basic (Usage)Copy Code
Dim instance As WebSchedulerClientSideEvents
Dim value As System.String
 
instance.OnBeforeAdd = value
 
value = instance.OnBeforeAdd
C# 
[System.ComponentModel.DescriptionAttribute("Gets or sets the event handler before insert is executed.")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
[System.ComponentModel.DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.CategoryAttribute("Client Side Events")]
[ISNet.EventParameterAttribute("controlId, evt")]
public System.string OnBeforeAdd {get; set;}
Delphi 
public read-write property OnBeforeAdd: System.String; 
JScript 
System.ComponentModel.DescriptionAttribute("Gets or sets the event handler before insert is executed.")
System.ComponentModel.NotifyParentPropertyAttribute()
System.ComponentModel.DefaultValueAttribute()
ISNet.Serialization.BinarySerializableAttribute()
System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")
ISNet.Serialization.XmlSerializableAttribute()
System.ComponentModel.CategoryAttribute("Client Side Events")
ISNet.EventParameterAttribute("controlId, evt")
public function get,set OnBeforeAdd : System.String
Managed Extensions for C++ 
[System.ComponentModel.DescriptionAttribute("Gets or sets the event handler before insert is executed.")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
[System.ComponentModel.DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.CategoryAttribute("Client Side Events")]
[ISNet.EventParameterAttribute("controlId, evt")]
public: __property System.string* get_OnBeforeAdd();
public: __property void set_OnBeforeAdd( 
   System.string* value
);
C++/CLI 
[System.ComponentModel.DescriptionAttribute("Gets or sets the event handler before insert is executed.")]
[System.ComponentModel.NotifyParentPropertyAttribute(true)]
[System.ComponentModel.DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.Design.ClientSideEventEditor, ISNet.WebUI.Design")]
[ISNet.Serialization.XmlSerializableAttribute()]
[System.ComponentModel.CategoryAttribute("Client Side Events")]
[ISNet.EventParameterAttribute("controlId, evt")]
public:
property System.String^ OnBeforeAdd {
   System.String^ get();
   void set (    System.String^ value);
}

Remarks

controlID
The ID of the WebScheduler calling the function.

evt
The event before it is being added.

Example

The following is the example of the javascript function that is assigned in above event.
JScriptCopy Code
function WebScheduler1_OnBeforeAdd(controlId, evt)
{
    var WebScheduler1 = ISGetObject(controlId); 
            
    return true;
}

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

©2013 Intersoft Solutions Corp. All Rights Reserved.