AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageGrid Events

The AdvantageGrid type exposes the following members.

Events


  Name Description
Public event OnDeleteObject
Raised when the user clicks the per-row Delete (X) icon. The handler is responsible for removing the entity from the source list, persisting, and rebinding the grid.
Public event OnLoadObject
Raised when the user clicks the toolbar Add button or the per-row Edit pencil. Inspect CommandType to distinguish: Add means clear the form for a new entity; Edit means populate the form from Item.
Public event OnReordered
Raised after a drag-drop reorder. The handler typically iterates Items, assigns each entity's SortOrder to the loop index, and persists.
Public event OnToggleActive
Raised when the user clicks the active/inactive icon. The handler should set IsActive on the resolved row to Toggle and persist. The active column is hidden if no handler is attached.
Public event OnToggleFeature
Raised when the user clicks the featured/not-featured icon. The handler should set IsFeatured on the resolved row to Toggle and persist. The feature column is hidden if no handler is attached.