Overview Support Download Purchase

ObjectGrid Control

The ObjectGrid control displays a collection of items on which a variety of operation can be performed. By default the properties with IsGridVisible set to true are displayed on the columns of the grid. The selected columns can be overridden by specifying them in the SelectedColumnNames property of the grid. The grid allows the items to be paged, filtered, sorted and searched. Items of the grid can then be selected individually for viewing, editing, changing status and getting history. It is also possible to add custom functionality by adding controls to each row of the grid.

Configuration

PropertyShort Description
TargetObjectNameName of the object in the TurnSystem that will be represented by this control.
TargetSystemNameName of the TurnSystem that will be used by this control.

Appearance

PropertyShort Description
AddButtonTextText on the add items button.
BackButtonTextText on the return to grid button.
PrevButtonTextPrevButtonText
NextButtonTextText on the next item button.
ExportButtonTextText on the export list button.
PageSizeNumber of items displayed on each page of the grid.
CssPrefixControls will use the style with the specified prefix.

Behavior

PropertyShort Description
EnableSecurityDetermines if the control will be constrained by the current users security rights.
EnableAddAllow new items to be added.
EnableNavigationAllow navigation of next and previous items while in detail mode.
EnablePagingAllow the items to be spread accross pages.
EnableHistoryAllow viewing the history of an items.
EnableSearch Allow searching of items in the grid data.
EnableFilterSelectAllow selecting a filter on the items.
FilterByString representing the value to filter the collection data by.
EnableMultiFilterModifyAllow selection of multiple items to preform an operation on.
EnableSortAllow sorting by each column in the grid.
EnableSearchAllow searching of items in the grid data.
EnableEmptySearchAllow searches with no criteria, resulting in all data being returned. This could be a performance issue if the resulting data set is large.
EnableSummaryAdds a report summary line to the grid which will show the results of each property's ReportOperationType.
EnableEditAllow editing of the items in the grid.
EnableDetailAllow viewing the details of an item in the grid.
DataCacheTimeAmount of time in seconds the data in the grid is cached. Set to zero for no data caching.
ExportFormatFormat to export the data in when the 'Export' button is selected.
SelectedColumnNamesColumns that will be displayed in the grid.

Grid Events

IGridCustomRowCells

It is possible to add custom controls to each row of the grid. These controls should be used to perform custom actions on the item in the selected row. The signature of the implemented call is described below. An example of using custom controls can be found in the CustomGrid.aspx page of the ContactDatabase example project.

void AddCellControls(TableCell td, int rowKey, TurnCss css);

ParameterDescription
tdThe cell that will hold the custom controls.
rowKeyThe CommandArgument of the custom controls should be set to the rowKey. The ID of the custom controls will use this to uniquely identify them.
cssCustom controls should use the TurnCss that has been set for them in the grid.

© 2008 TurnObjects All rights reserved.  Legal  |  Privacy