Intersoft WebGrid Documentation
OnCalendarSelect Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > ClientEvents Class : OnCalendarSelect Property






Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.

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")>
<NotifyParentPropertyAttribute(True)>
<ISNet.EventParameterAttribute("controlId, editElement, yearValue, monthValue, dayValue")>
<DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.")>
<DefaultValueAttribute()>
Public Property OnCalendarSelect As String
Visual Basic (Usage)Copy Code
Dim instance As ClientEvents
Dim value As String
 
instance.OnCalendarSelect = value
 
value = instance.OnCalendarSelect
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")]
[NotifyParentPropertyAttribute(true)]
[ISNet.EventParameterAttribute("controlId, editElement, yearValue, monthValue, dayValue")]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.")]
[DefaultValueAttribute()]
public string OnCalendarSelect {get; set;}
Delphi 
public read-write property OnCalendarSelect: 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")
NotifyParentPropertyAttribute()
ISNet.EventParameterAttribute("controlId, editElement, yearValue, monthValue, dayValue")
DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.")
DefaultValueAttribute()
public function get,set OnCalendarSelect : 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")]
[NotifyParentPropertyAttribute(true)]
[ISNet.EventParameterAttribute("controlId, editElement, yearValue, monthValue, dayValue")]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.")]
[DefaultValueAttribute()]
public: __property string* get_OnCalendarSelect();
public: __property void set_OnCalendarSelect( 
   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")]
[NotifyParentPropertyAttribute(true)]
[ISNet.EventParameterAttribute("controlId, editElement, yearValue, monthValue, dayValue")]
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked when selection is made from Calendar popup.")]
[DefaultValueAttribute()]
public:
property String^ OnCalendarSelect {
   String^ get();
   void set (    String^ value);
}

Remarks

The user-defined function should only contain the name of the function. For example, "HandleEvent".

The function can be defined in either inline or linked JavaScript files and can accept following parameters:

gridId

The ID of the grid.

editElement

The HTML element of the edit object assigned to the calendar.

yearValue

The value of the selected year.

monthValue

The value of the selected month based on zero-index.

dayValue

The value of the selected day.

This event is not cancelable.

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

Reference

ClientEvents Class
ClientEvents Members

Concepts

Events

©2012 Intersoft Solutions Corp. All Rights Reserved.