Class GridService
- Namespace
- Dynamicweb.Content
- Assembly
- Dynamicweb.dll
- Inheritance
-
Grid
Service
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
intKey to reset
ClearTrashBin(int)
Deletes the row with the specified id form trashbin
Parameters
id
intThe id of the row to delete
Exceptions
CopyTo(GridRow, int)
Copies the row to the page with the specified Id.
Parameters
Returns
DeleteGridRow(int)
Parameters
id
int
Returns
DeleteGridRows(IEnumerable<int>)
Parameters
ids
IEnumerable<int>
Returns
GetCache(IEnumerable<int>)
Parameters
keys
IEnumerable<int>
Returns
GetCache(int)
Parameters
key
int
Returns
GetDeletedGridRows(int)
Gets the collection of deleted rows in specified area
Parameters
areaId
intThe area id.
Returns
- IEnumerable<Grid
Row > A collection of rows
GetGridRowById(int)
Parameters
rowId
int
Returns
GetGridRowDefinitionUsageInfo(GridRowDefinition)
Gets the list of using info of a Grid
public IEnumerable<GridRowDefinitionUsageInfo> GetGridRowDefinitionUsageInfo(GridRowDefinition definition)
Parameters
definition
GridRow Definition The grid row definition
Returns
GetGridRows()
Returns
GetGridRowsByAreaId(int)
Parameters
areaId
int
Returns
GetGridRowsByPageId(int)
Parameters
id
int
Returns
GetGridRowsByPageId(int, bool)
Parameters
Returns
GetLanguageVersions(GridRow)
Gets all language versions of the row
Parameters
gridRow
GridRow The gridRow for which to get all its language versions
Returns
- IEnumerable<Grid
Row > A list of grid rows
GetTemplateParentPage(int)
Get row template folder
Parameters
areaId
intThe area id.
Returns
- Page
The grid row template folder
MoveTo(GridRow, int)
Parameters
Returns
RestoreGridRow(int)
Restore the row with the specified id
Parameters
id
intThe id of the row to restore
Exceptions
SaveAsTemplate(GridRow, string, string, string, string)
Saves the specified row as a template
public GridRow SaveAsTemplate(GridRow gridRow, string name, string description, string image, string category)
Parameters
gridRow
GridRow The grid row to save as a template
name
stringThe name of the new template
description
stringA description of the template
image
stringAn image for the template
category
stringA category of the template
Returns
- Grid
Row The grid row template
SaveGridRow(GridRow)
Parameters
gridRow
GridRow
Returns
SaveGridRows(IEnumerable<GridRow>)
Parameters
gridRows
IEnumerable<GridRow >
Returns
SortGridRows(IEnumerable<GridRow>)
Sorts grid rows according to position in list.
Parameters
gridRows
IEnumerable<GridRow >Grid rows.
Returns
SortGridRows(IEnumerable<int>)
Sorts grid rows according to position in list.
Parameters
rowOrder
IEnumerable<int>List of row ids. Position in list is used to set sort value.