GridSerializer Members
Include Protected Members
Include Inherited Members
Serializes configuration information and data for the Microsoft.SharePoint.JSGrid into a JavaScript Object Notation (JSON) string.
The GridSerializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GridSerializer | Initializes a GridSerializer object. |
Top
Properties
Name | Description | |
---|---|---|
AdditionalParams | Gets a collection of information for the consumer of the GridSerializer to populate with any additional information they want sent to the client. | |
AutoFilterColumnKeys | Gets or sets a collection of column keys identifying the columns to be computed when serialization mode is set to auto-filter. When EnableAutoFilterEntryGeneration is set to true, AutoFilterColumnKeys dictates in which columns auto-filter entries are generated. | |
BottomRecordKey | Gets or sets the bottom record key. | |
CellStyles | Gets a mapping of cell style IDs, represented as strings, to cell styles. | |
DisableRecordKeyHash | Gets or sets a value that indicates whether the record key has been disabled. | |
EnableAutoFilterEntryGeneration | Gets or sets a value to determine whether auto-filter entries are generated. AutoFilterColumnKeys dictates in which columns auto-filter entries are generated. | |
GanttBarStyleIdsColumnName | Gets or sets the GanttBarStyleIds column name. | |
GanttDependentsColumnName | Gets or sets the gamtt dependents column name. | |
GanttStyleInfo | Gets the gantt style information. | |
GridColumnMap | A map of strings representing column keys to the grid columns they uniquely identify. This map is populated based on the collection passed into the GridColumns property. | |
GridColumns | Gets or sets the collection of columns to be displayed in the grid. | |
GridFieldMap | A map of strings representing field keys to the GridField objects they uniquely identify. This map is populated based on the collection passed into the GridFields property. | |
GridFields | Gets or sets a collection of rich information about the data columns in the serializer’s data source. | |
GridRowStyleIdColumnName | Gets or sets a value specifying the ColumnName in the external source table that contains the style IDs for the cells in a given row. Must be specified if using grid row styles and the ColumnName for the DataColumn containing these values does not equal the value in the constant DefaultGridRowStyleIdColumnName. | |
GroupingDescendantCountColumnName | Gets or sets the grouping descendant count. | |
GroupingOutlineLevelColumnName | Gets or sets the grouping outline level. | |
GroupingParentKeyColumnName | ||
GroupingRecordKeyPrefix | Gets or sets the grouping record key prefix. | |
HierarchyDescendantCountColumnName | Gets or sets a ColumnName that is not present in the external source table. Only needs to be specified if there is or could be a DataColumn whose ColumnName equals the value in the constant DefaultGroupingDescendantCountColumnName. If a Microsoft.SharePoint.JSGrid instance is populated by multiple GridSerializer objects over its lifetime, this value must remain consistent. | |
HierarchyOutlineLevelColumnName | Gets or sets a ColumnName that is not present in the external source table. Only needs to be specified if there is or could be a DataColumn whose ColumnName equals the value in the constant DefaultHierarchyOutlineLevelColumnName. If a Microsoft.SharePoint.JSGrid instance is populated by multiple GridSerializer objects over its lifetime, this value must remain consistent. | |
HierarchyOutlineTextColumnName | Gets the hierarchy outline of text. | |
HierarchyParentKeyColumnName | Gets or sets the hierarchy parent key column. | |
IncludeNonGridFields | Gets or sets a property indicating whether data columns present in the data source, but not in the grid fields collection, will be serialized. | |
Index | Gets the index value. | |
IsGanttJavaScriptRequired | ||
JsonEncoders | ||
KeyColumnName | Gets or sets a string that corresponds to the column name of the data column in the external source table that contains values that uniquely identify records. This value was specified in the constructor. | |
KeyDeserializer | Gets or sets a delegate that takes a string representing a JavaScript Object Notation (JSON) serialized key, and returns a corresponding object. For instance, this delegate might take a string “4” and return a Int32 with the value 4. | |
LocaleCulture | Gets or sets the locale. | |
Mode | Gets or sets the grid serializer mode. | |
MultiValueSeparator | Gets or sets the string used to separate localized values in multi-valued grid fields. | |
PagingFilter | Gets or sets a paging filter which indicates the row view indices of the rows that will be serialized. | |
PaneLayout | Gets or sets the pane layout. | |
PivotedGridColumns | Gets the pivoted grid columns. | |
PostProcess | Gets or sets a delegate to be called after the serialization dataset is fully populated, but before it is actually serialized. | |
PostSliceFieldAppender | Gets or sets a delegate that will be called after slicing the data. It provides the opportunity to add more fields to the grid after it is known which records will be present. | |
RecordEditModeColumnName | Gets or sets the column name of the record to enable editing on. | |
RememberedRecordKeyHash | Disables the computation of a hash of the ordered record key view sent to the client. | |
RowAutoFilter | Gets or sets a map of column keys to serialized data values. | |
RowFilter | Gets or sets an XML string specifying how a row is filtered. | |
SortedColumns | Gets or sets the sorted columns associated with the grid. | |
StringPropTypeId | Gets the string representing the strong property type ID. |
Top
Methods
Name | Description | |
---|---|---|
ApplyIncrementalChanges | Informs the grid of changes made on the client. Allows the GridSerializer object to consider local changes when sorting, grouping and slicing. | |
ApplyPostViewIncrementalInsertsAndDeletes(IEnumerable<Change>) | Applies relevant record insert and delete changes to the input data table before slicing occurs. | |
ApplyPostViewIncrementalInsertsAndDeletes(IEnumerable<Change>, Func<Object, Dictionary<String, Object>>) | Applies relevant record insert and delete changes to the input data table before slicing occurs. | |
DefaultCompare | Implements a default comparison of two objects by using their IComparable implementations. | |
EnableGantt | Configures the grid to display a Gantt chart in the right pane. In cases where a GridSerializer instance is populated by multiple GridSerializer objects over its lifetime, this function can only be called if ReserveGantt(String) or EnableGantt was called on the initial GridSerializer object. | |
EnableGridRowStyles | Provides a delegate that will populate row styles. | |
EnableGrouping | Configures the grid to display grouping. | |
EnableHierarchy | Configures the grid to display its rows in a hierarchy. | |
EnableIncrementalChanges | Prepares the GridSerializer object for accepting incremental changes. | |
EnablePivotedGridPane | Configures the grid to display a second pane on right pane. This pane can be a fixed multiple of rows for each row in the left pane. | |
EnableRecordEditMode | Provides a delegate to apply the record edit mode after slicing has occurred. | |
EnableReservedHierarchy | Configures the grid to display its rows in a hierarchy. | |
EnableRowFiltering | Configures the grid to hide records based on the specified criteria. This must be called if the RowFilter or RowAutoFilter property is specified. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetChangesFromJson<KeyType> | Extracts a collection of Change objects from the passed-in JavaScript Object Notation (JSON). | |
GetFilterFields | Parses the specified rowFilterXML for GridField references, and returns their field keys. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
LocalizeField | Uses the grid’s process (including calling out to the GridField) to localize a data value in a given cell. Useful for populating grouping rows. | |
MemberwiseClone | (Inherited from Object.) | |
RegisterPropLookupType | Registers a lookup property type with the serializer. | |
ReserveGantt | Reserves Gantt information in case it will be used. | |
ReserveGrouping | For use when a GridSerializer instance is populated by multiple GridSerializer objects over its lifetime, this method notifies the GridSerializer object that grouping could be enabled later in the lifetime of the Microsoft.SharePoint.JSGrid instance being configured. Must be called on the initial GridSerializer object for that Microsoft.SharePoint.JSGrid instance. | |
ReserveHierarchy | For use when a Microsoft.SharePoint.JSGrid instance is populated by multiple GridSerializer objects over its lifetime, this method notifies the GridSerializer object that hierarchy could be enabled later in the lifetime of the Microsoft.SharePoint.JSGrid instance being configured. Must be called on the initial GridSerializer object for that Microsoft.SharePoint.JSGrid instance. | |
RestoreHierarchyState | Restores hierarchy from a hierarchy state stored as a JavaScript Object Notation (JSON) string. | |
SetHierarchyStateExpandedToLevel | Specifies how many levels to expand the hierarchy | |
ToJson | Convert to Json. | |
ToString | (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
DefaultGanttBarStyleIdsColumnName | A string representing the default gantt bar style column name. | |
DefaultGridRowStyleIdColumnName | A string representing the default grid row style ID column name. | |
DefaultGroupingDescendantCountColumnName | A string representing the default grouping descendant count. | |
DefaultGroupingOutlineLevelColumnName | A string representing the default outline level. | |
DefaultGroupingParentKeyColumnName | A string representing the default grouping parent key. | |
DefaultGroupingRecordKeyPrefix | A string representing the default grouping record key prefix. | |
DefaultHierarchyDescendantCountColumnName | A string representing the default hierarchy descendant count. | |
DefaultHierarchyOutlineLevelColumnName | A string representing the default hierarchy outline level. | |
DefaultRecordEditModeColumnName | A string representing the default record edit mode. |
Top