AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageGrid Properties

The AdvantageGrid type exposes the following members.

Properties


  Name Description
Public property Columns
The visible data columns, declared either inline in markup (inside a <Columns> tag) or programmatically. This property hides Telerik's RadGrid.Columns with a strongly-typed list of GridColumnDefinition; entries are converted to GridBoundColumn instances during OnPreRender(EventArgs) and slotted between the auto-generated Edit and Active/Feature/Delete columns.
Public property CurrentDomain
Gets the domain currently scoped to this control.
Public property CurrentLanguage
Gets the language currently scoped to this control.
Public property CurrentSql
Gets the SQL helper scoped to the current request.
Public property CurrentUser
Gets the authenticated user executing the current request.
Public property DataKeyItems
The key field/value pairs identifying the row most recently selected for edit, persisted across postbacks via XML serialisation into ViewState. The setter is protected internal — the grid populates it during the Edit command; the host reads it to associate an edit-form save with the right row.
Public property DataKeyNames
Names of the property/properties on the row's data object that uniquely identify it. Composite keys are supported by listing multiple field names. The values for the clicked row are bundled as GridDataKeyValue entries on every event.
Public property DisableSorting
When true, disables drag-drop reordering and row selection. Use for grids whose order is determined by data (e.g. natural sort on a name column) rather than by an explicit SortOrder property.
Public property ShowActiveButton
Whether to render the active/inactive toggle column. The column is also auto-hidden when the row's data object lacks an IsActive property or when no OnToggleActive handler is attached.
Public property ShowAddFunction
Whether to render the toolbar Add button. Setting this to false still allows edit/delete on existing rows but blocks creation.
Public property ShowDeleteFunction
Whether to render the per-row Delete (X) column. Set to false when rows are soft-deleted via the active toggle instead.
Public property ShowEditFunction
Whether to render the per-row Edit (pencil) column. Set to false for read-only or display-only grids.
Public property ShowFeatureButton
Whether to render the featured/not-featured toggle column. Auto-hidden when the row's data object lacks an IsFeatured property or when no OnToggleFeature handler is attached.