다음을 통해 공유


JS Grid Enumerations

Applies to: SharePoint Foundation 2010

The JS Grid control supports a wide variety of enumerations that can be used in your code.

ClickContext

Describes the area clicked by the user.

Value

Description

SelectAllSquare

Indicates that the SelectAll square was clicked.

RowHeader

Indicates that the row header was clicked.

ColumnHeader

Indicates that the column header was clicked.

Cell

Indicates that a cell was clicked.

Gantt

Indicates that the Gantt pane was clicked.

Other

Unspecified.

DelegateType

A listing of the various JS Grid delegate types.

Refer to JS Grid Delegates for a listing of the available delegate types.

EditActorReadType

Describes the read type.

Value

Description

Both

Read type is both localized and data.

LocalizedOnly

Read type is localized only.

DataOnly

Read type is data only.

EditActorUpdateType

Describes whether the update has been committed.

Value

Description

Committed

Represents an update that has been committed.

Uncommitted

Represents an update that has not been committed.

EditActorWriteType

Describes the type of write action.

Value

Description

Both

An identifier representing an action that is both localized and data.

LocalizedOnly

An identifier representing an action that is localized only.

DataOnly

An identifier representing a data-only write action.

Either

An ID representing either a data only write action or a localized only write action.

EditMode

Specifies JS Grid control edit modes.

Value

Description

Defer

Always defer read/write status; the control has no control over its own state.

ReadOnly

If applied to a record or field, none of the cells are editable; if applied to a row, check the edit mode of each cell.

ReadOnlyDefer

The cell is read-only unless settings on the row, column, or grid control specify otherwise. If applied to a row, check the edit mode of each cell.

ReadWrite

The cell is editable, unless settings on the row, column, or grid control specify otherwise.

ReadWriteDefer

The cell is editable, unless settings on the row, column, or grid control specify otherwise. Defer to any other edit mode instruction.

EventType

Describes the event type.

Refer to JS Grid Events for a listing of the available event types.

GanttBarDateType

Specifies the date type of a Gantt bar.

Value

Description

Start

Indicates the starting date.

End

Indicates the ending date.

GanttDrawBarFlags

Specifies either the left or right Gantt bar flag.

Value

Description

LeftLink

Specifies the left link of the Gannt bar flag.

RightLink

Specifies the right link of the Gantt bar flag.

HierarchyMode

Specifies the hierarchy mode.

Value

Description

None

Indicates no hierarchy mode.

Standard

Indicates a standard hierarchy mode.

Grouping

Indicates a grouping hierarchy mode.

LinkType

Specifies the link type.

Value

Description

FinishFinish

Describes a finish-to-finish relationship between tasks.

FinishStart

Describes a finish-to-start relationship between tasks.

StartFinish

Describes a start-to-finish relationship between tasks.

StartStart

Describes a start-to-start relationship between tasks.

PaneLayout

Describes the pane layout.

Value

Description

GridOnly

Display the grid only.

GridAndGantt

Display the grid and the Gantt panes.

GridAndPivotedGrid

Display the grid and the pivoted grid panes.

PaneId

Specifies the pane ID.

Value

Description

MainGrid

The ID representing the main grid pane.

PivotedGrid

The ID representing the pivoted grid pane.

Gantt

The ID representing the pane containing the Gantt chart.

RowHeaderStatePriorities

Describes the state priority of the row header.

Value

Description

Dirty

Indicates that the row is dirty.

Transfer

Indicates a pending transfer.

CellError

Indicates a cell error.

Conflict

Indicates a conflict.

RowError

Indicates a row error.

NewRow

Indicates a new row.

SelectionType

Describes the selection type.

Value

Description

None

Iindicates that no selection was made.

CellRange

Indicates that a cell range was selected.

RowRange

Indicates that a row range was selected.

ColumnRange

Indicates that a column range was selected.

SelectionTypeFlags

Internal only; not intended to be used from your code.

SortMode

Describes the sort mode.

Value

Description

Ascending

Sort in ascending order.

Descending

Sort in descending order.

None

No sort order is specified.

TextDirection

The JS Grid control and JS Grid control Gantt chart support right-to-left (RTL) languages.

The TextDirection property works with the locale ID (LCID) property to deliver a regionally appropriate grid or Gantt chart. Setting LCID for the control passes the indicated LCID to the grid panes. The grid pane passes the LCID to the columns.

Value

Description

Default

Default text direction.

RightToLeft

Right-to-left text direction.

LeftToRight

Left-to-right text direction.

UpdateSerializeMode

Describes the update serialization mode.

Value

Description

Cancel

Cancel the update.

Default

Use the default mode.

PropDataOnly

Specifies that the update should be data only.

PropLocalizedOnly

Specifies that the update should be localized only.

PropBoth

Specifies that the update should be both localized and data only.

UpdateTrackingMode

Describes the update data mode.

Value

Description

PropData

Update mode is data only.

PropLocalized

Update mode is localized only.

PropBoth

Update mode is both localized and data.

ValidationState

Specifies the validation state.

Value

Description

Valid

A valid state.

Pending

Server validation is pending.

Invalid

An invalid state.

See Also

Reference

Microsoft.SharePoint.JSGrid

JSGrid

Concepts

JS Grid Control