SP.ListOperation.Selection.selectListItem(iid, bSelect) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Selects or cancels the selection of a list item.
var value = SP.ListOperation.Selection.selectListItem(id, bSelect);
Parameters
iid
Type: string
The ID of the list item to select.
bSelect
Type: Boolean
true to select the specified list item; otherwise, false.
Return Value
Type: Boolean
true if the operation is successful; otherwise, false.
Remarks
This method selects or cancels the selection of the list item specified by the iid parameter according to the value of the bSelect parameter, and then updates the Server ribbon.
This method returns false if the count of selected items has reached the maximum of selected items allowed.
The format of iid is ctxNum,id,objType, where ctxNum is the integer value of the context name, id is the ID of the list item, and objType is the type of the list item: 0 = document or list item, 1 = folder.
The value for ctxNum can be found using GetCurrentCtx().ctxId in Core.js.
Applies To
SP.ListOperation.Selection Class