This topic has not yet been rated - Rate this topic

SPField.GetFieldValueForClientRender method

SharePoint 2013

When overridden in a derived class, converts the field type value into object for use in client Display, Edit and New item forms.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public virtual Object GetFieldValueForClientRender(
	SPItem item,
	SPControlMode mode
)

Parameters

item
Type: Microsoft.SharePoint.SPItem
An object containing a value of for this type of field.
mode
Type: Microsoft.SharePoint.WebControls.SPControlMode
A value that specifies whether the returned object should be suitable for the Display form, or Edit form, or New form.

Return value

Type: System.Object
An object containing a representation of the field value used for client rendering in the form designated by mode.

Override this method to provide, for example, a JSON array of selected values for a SPFieldMultiChoice field.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.