That class is used as the second parameter in event handlers for the resize and the resizing events of WebResizingExtender.
get_cancel
That method allows to check if the resize or the resizing event was canceled.
Returns
Boolean value. The value of true means that action will be canceled.
getBrowserEvent
That method allows to get reference to the event object.
Reference to event or null.
getHeight
That method allows to check new height of the resizing panel.
Numeric value.
Remarks
Example:
function myResizeFnc(sender, args) { window.status = 'New height=' + args.getHeight(); }
getOldHeight
That method allows to check old height of the resizing panel.
function myResizeFnc(sender, args) { window.status = 'Old height=' + args.getOldHeight(); }
getOldWidth
That method allows to check old width of the resizing panel.
function myResizeFnc(sender, args) { window.status = 'Old width=' + args.getOldWidth(); }
getWidth
That method allows to check new width of the resizing panel.
function myResizeFnc(sender, args) { window.status = 'New width=' + args.getWidth(); }
set_cancel
That method allows to cancel the resize or the resizing events.
Parameters
value
Boolean value. The value of true will cancel action.
function myResizeFnc(sender, args) { if(args.getWidth() == 20) if(args.getOldWidth() == 100) args.set_cancel(true); }
setHeight
That method allows to set value of height for resizing panel while processing the resize event.
Numeric value for height.
function myResizeFnc(sender, args) { if(args.getHeight() == 20) args.setHeight(50); }
setWidth
That method allows to set value of width for resizing panel while processing the resize event.
Numeric value for width.
function myResizeFnc(sender, args) { if(args.getWidth() == 20) args.setWidth(50); }