WebAsyncRefreshPanel Client-Side Events

Glossary Item Box

Infragistics® NetAdvantage® for ASP.NET (CLR 2.0)

WebAsyncRefreshPanel Client-Side Events

Events

Object that contains list of ClientSideEvents function names that were set to WebAsynchronousPanel on server.

Events Properties

Error

Fires when error occurs during asynchronous post back.

Parameters
oPanel

String. Reference to the JavaScript object that represents the WebAsyncRefreshPanel.

oEvent

String. Reference to the event object.

flags

String. Flags that represent the origin of the error.

Flag values:

1 - global error on server while before processing request: full post back will be triggered.

2 - error on server while building response stream: client will not be updated by response.

4 - error on client while processing response: client will not be updated by response.

8 - error on client while processing response for dependant panel: dependant panel will not be updated by response.

16 - error on client while running javascript block(s) provided by response.

32 - failure to create css styles provided by response

function WebAsyncRefreshPanel1_Error(oPanel, oEvent, flags)
{
	if(flags == 1)
		alert("Exception on server. Before full postback.");
}

InitializePanel

Fires after WebAsyncRefreshPanel is initialized.

Parameters
oPanel

String. Reference to the JavaScript object that represents the WebAsyncRefreshPanel.

RefreshComplete

Fires after panel content is updated by asynchronous response.

Parameters
oPanel

String. Reference to the JavaScript object that represents the WebAsyncRefreshPanel.

RefreshRequest

Fires before asynchronous submit.

Parameters
oPanel

String. Reference to the JavaScript object that represents the WebAsyncRefreshPanel.

oEvent

String. Reference to the event object.

Submit can be cancelled by using oEvent.cancel = True;

Response can be cancelled by oEvent.cancel = 'cancelResponse';

A Full post back can be triggered by oEvent.fullPostBack = true;

id

String. ID of HTML element which triggered the post back action.

function WebAsyncRefreshPanel1_RefreshRequest(oPanel, oEvent, id)
{
	// cancel request when Button1 was clicked
	if(id && id.length - 7 == id.indexOf('Button1'))
		oEvent.cancel = true;
	// keep request, but cancel response: notify server about Button2 click
	if(id == 'Button2')
		oEvent.cancelResponse = true;
	// trigger full postback instead of asynchronous when Button3 was clicked
	if(id == 'Button3')
		oEvent.fullPostBack = true;
}

RefreshResponse

Fires before panel content is updated by asynchronous response.

Parameters
oPanel

String. Reference to the JavaScript object that represents the WebAsyncRefreshPanel.

oEvent

String. Reference to the event object.

Update of content from response stream can be cancelled by oEvent.Cancel = true;


E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 1996-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.2.20072.1063