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

SPFieldLookup.GetFieldValueForClientRender method

SharePoint 2013

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 override 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.

This override returns a set of lookup IDs and lookup values as a string.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.