You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/ajaxmanager/client-side-programming/overview.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,19 +19,19 @@ You can use the client-side API to execute your own JavaScript functions at cert
19
19
>
20
20
21
21
22
-
>note **RadAjax** for ASP.NET AJAX requires enclosing the server code blocks inside a **RadCodeBlock** control. More information is available here:[RadCodeBlock and RadScriptBlock]({%slug ajaxmanager/radcodeblock-and-radscriptblock%}).
22
+
>note **RadAjax** for ASP.NET AJAX requires enclosing the server code blocks inside a **RadCodeBlock** control. More information is available here:[RadCodeBlock and RadScriptBlock]({%slug ajaxmanager/radcodeblock-and-radscriptblock%}).
23
23
>
24
24
25
25
26
26
## ajaxRequest(arguments)
27
27
28
-
There are cases in which you may want to trigger postback/ajax request to the server. In this cases you can use the**ajaxRequest(arguments)** function to initiate a generic AJAX request. When using this function, the event target defaults to the **RadAjaxPanel** or **RadAjaxManager** instance. The **arguments** are the parametersthat the control had used when it raised the request.
28
+
There are cases in which you may want to trigger a postback/ajax request to the server. In these cases you can use the**ajaxRequest(arguments)** function to initiate a generic AJAX request. When using this function, the event target defaults to the **RadAjaxPanel** or **RadAjaxManager** instance. The **arguments** are the parameters that the control had used when it raised the request.
29
29
30
30
## AjaxRequest Event
31
31
32
32
When **ajaxRequest** function is called on the client it can be handled in the **AjaxRequest** event handler on the server, as shown in **Example 1**.
33
33
34
-
Example 1: Performe ajax request on the client and handle it on the server.
34
+
Example 1: Perform an ajax request on the client and handle it on the server.
@@ -64,9 +64,9 @@ Example 1: Performe ajax request on the client and handle it on the server.
64
64
````
65
65
66
66
67
-
When an AJAX request is triggered using the **AjaxRequest** event from the client, the **RadAjaxManager**itself should be set as the AJAX initiator updating the corresponding control, as shown in **Example 2**.
67
+
When an AJAX request is triggered using the **AjaxRequest** event from the client, the **RadAjaxManager**itself should be set as the AJAX initiator updating the corresponding control, as shown in **Example 2**.
68
68
69
-
Example 2:Setting RadAjaxManager as an ajax initiator which updates the TextBox control.
69
+
Example 2:Setting RadAjaxManager as an ajax initiator which updates the TextBox control.
You can call the **ajaxRequestWithTarget(eventTarget, eventArgument)** function to simulate a postback/AJAX request send by another control (besides **RadAjaxManager** or **RadAjaxPanel**) with the specified UniqueID and specified arguments. The function’s execution can be handled by the corresponding event (i.e., Button_Click) on the server.
89
+
You can call the **ajaxRequestWithTarget(eventTarget, eventArgument)** function to simulate a postback/AJAX request sent by another control (besides **RadAjaxManager** or **RadAjaxPanel**) with the specified UniqueID and specified arguments. The function’s execution can be handled by the corresponding event (i.e., Button_Click) on the server.
90
90
91
91
92
92
| Parameters | Description |
93
93
| ------ | ------ |
94
-
|**eventTarget**|The control that should raise a postback event. You should always use the control's UniqueID..|
94
+
|**eventTarget**|The control that should raise a postback event. You should always use the control's UniqueID.|
95
95
|**eventArgument**|This is an optional argument for the event.|
96
96
97
-
>note **ajaxRequestWithTarget** is designed as a substitute of the standard **doPostBack function. Thus, you need to overridethe**RaisePostBackEvent** of the page in order to get its argument server-side.
97
+
>note **ajaxRequestWithTarget** is designed as a substitute of the standard **doPostBack** function. Thus, you need to override the**RaisePostBackEvent** of the page in order to get its argument server-side.
0 commit comments