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






Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.")>
<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.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<ISNet.EventParameterAttribute("controlId, actionName, lastRequestObject, xmlResponseObject")>
Public Property OnAfterResponseProcess As String
Visual Basic (Usage)Copy Code
Dim instance As ClientEvents
Dim value As String
 
instance.OnAfterResponseProcess = value
 
value = instance.OnAfterResponseProcess
C# 
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.")]
[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.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId, actionName, lastRequestObject, xmlResponseObject")]
public string OnAfterResponseProcess {get; set;}
Delphi 
public read-write property OnAfterResponseProcess: String; 
JScript 
DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.")
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.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
ISNet.EventParameterAttribute("controlId, actionName, lastRequestObject, xmlResponseObject")
public function get,set OnAfterResponseProcess : String
Managed Extensions for C++ 
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.")]
[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.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId, actionName, lastRequestObject, xmlResponseObject")]
public: __property string* get_OnAfterResponseProcess();
public: __property void set_OnAfterResponseProcess( 
   string* value
);
C++/CLI 
[DescriptionAttribute("Specifies the client side (JavaScript) function that will be invoked after the response action of a request has been performed.")]
[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.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ISNet.EventParameterAttribute("controlId, actionName, lastRequestObject, xmlResponseObject")]
public:
property String^ OnAfterResponseProcess {
   String^ get();
   void set (    String^ value);
}

Property Value

Returns return value.

Example

The sample below shows you how to display message box when the requested action is being processed
C#Copy Code
WebGrid1.LayoutSettings.ClientSideEvents.OnAfterResponseProcess = "WebGrid1_AfterResponseProcess";
The following is the example of the javascript function that is assigned in above event.
JScriptCopy Code
function WebGrid1_AfterResponseProcess(controlId) 
{ 
   var WebGrid1 = ISGetObject(controlId); 

   alert("Processing Request"); 

   return true; 
}

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 calling the function.

action

The action name of the processed request.

lastRequestObject

The last object used to process the request.

xmlResponseObject

The XML object containing response information from server.

Note that you should include the return value of your function. Returning a true value means that default behavior will be processed. Otherwise, the default behavior will be skipped.

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.