Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebPartMobileAdapter.OnLoadForMobile Method

Replaces the OnLoad(EventArgs) method of the control that is being adapted when the control is on a WebPartMobilePage.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
protected virtual void OnLoadForMobile(
	EventArgs e
)

Parameters

e
Type: System.EventArgs
An object that contains data for the event.

The default implementation only calls the base OnLoad(EventArgs) method.

Do not call this method from your own code. The Microsoft SharePoint Foundation mobile adaption framework will call it as part of the Load event handling.

Notes to Inheritors

Override this method when you need additional loading behavior for the control when it is used on a mobile device.

Important noteImportant

Your override must always call the base adapter class’s OnLoad(EventArgs) method to ensure that the Load event of the control that is being adapted is raised.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.