Share via


AddColumnMenuItems

Applies to: SharePoint Foundation 2010

In this article
Description
Arguments
Returns

JS Grid Control Delegates

Description

Used when the column drop-down menu is activated.

Note

AddColumnMenuItems is only called if WillAddColumnMenuItems returns true for this column and if ExpandColumnMenu delegate is not present.

Arguments

Argument

Description

columnKey

A unique string identifier for a column

fnInsertMenuItem

fnInsertMenuItem is a function that takes 6 arguments:

  • text

  • fnItemClicked

  • imageUri

  • imageAltText

  • bDisabled

  • bChecked

It will append a menu item to the specified column's menu.

fnInsertSeparator

fnInsertSeparator is a function that takes no arguments and returns nothing. It will append a separator line to the specified column's menu.

Returns

Returns a new record.

See Also

Concepts

JsGrid Client Side Reference

JS Grid Control Delegates

JS Grid Enumeration

JS Grid Control Events

Other Resources

JS Grid Control Functions