Version

CancelEventArgs Object

CancelEventArgs

Class that is used for the second parameter in event handlers of Infragistics.UI.ExtenderBase objects.

CancelEventArgs Methods

get_cancel

That method allows to check if event was canceled.

Returns

Boolean value.

getBrowserEvent

That method allows to get reference to the event object of browser.

Returns

Reference to event or null. If it is not null, then it can be a reference to the event used by the Sys.UI.Behavior which wraps the real event of browser and puts into the a member-variable rawEvent.

Remarks

Example:

 function myEvntHandler(sender, args)  {  var evt = args.getBrowserEvent();  var rawEvt = evt ? evt.rawEvent : null;  if(rawEvt) 	 alert('Browser event: ' + rawEvt.type);  //if(someCondition)  args.set_cancel(true);  }

set_cancel

That method allows to cancel event.

Parameters

value

Boolean value. Value of true will cancel event.

Remarks

Note: not all events can be canceled.