AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageCMS.Web.UI.Admin Namespace

Classes


  Class Description
Public class AdvantageGrid
Reusable list-editor server control that extends Telerik RadGrid with built-in edit / delete / activate-toggle / feature-toggle / drag-drop-reorder behaviour. The host page supplies the data source through the standard NeedDataSource()()()() event and persists changes; the control renders the rows and raises strongly-typed events identifying which row was acted on (via GridDataKeyValue lists, so composite keys are supported).
Public class AdvantageGrid..::..AdvantageGridArgs
Event arguments for the non-toggle row commands (Add, Edit, Delete). Setters are protected internal so only the grid can populate them.
Public class AdvantageGrid..::..AdvantageGridItem
Lightweight row identifier carried on every event raised by AdvantageGrid. Wraps the list of GridDataKeyValue pairs that uniquely identify the row; pass them to [GetRecordFromList{T}] to resolve back to the original entity.
Public class AdvantageGrid..::..AdvantageGridSortArgs
Event arguments for drag-drop reordering. Items reflects the rows in their new order at the moment of drop — assign SortOrder by index in the handler and persist.
Public class AdvantageGrid..::..AdvantageGridToggleArgs
Event arguments for the active and featured toggle columns. Adds the new boolean state to the base AdvantageGrid..::..AdvantageGridArgs payload.
Public class GridColumnDefinition
Declarative description of a single visible column on AdvantageGrid. Items go into the grid's Columns collection (either inline in markup or added in code-behind); the grid converts each one into a Telerik GridBoundColumn at PreRender.
Public class GridDataKeyValue
One element of a row's primary key — pairs a key field name with the value that field holds for the clicked row. AdvantageGrid emits a List of these on every row event so handlers can identify the record under both single- and composite-key scenarios.

Delegates


  Delegate Description
Public delegate AdvantageGrid..::..AdvantageGridHandler
Delegate signature for [OnLoadObject] and [OnDeleteObject].
Public delegate AdvantageGrid..::..AdvantageGridHandlerReordered
Delegate signature for [OnReordered].
Public delegate AdvantageGrid..::..AdvantageGridHandlerToggle
Delegate signature for [OnToggleActive] and [OnToggleFeature].

Enumerations


  Enumeration Description
Public enumeration AdvantageGrid..::..GridCommandType
Identifies which grid command produced an AdvantageGrid..::..AdvantageGridArgs. Lets a single shared event handler distinguish Add vs Edit, etc.