Member Junction
    Preparing search index...

    Wrapper for EntityDataGridComponent that emits navigation events on row double-click. The host application subscribes to Navigate events and maps them to its routing system.

    This component is used by CodeGen for related entity grids in forms.

    Implements

    • AfterViewInit
    • OnDestroy
    Index

    Constructors

    Properties

    AfterDataLoad: EventEmitter<AfterDataLoadEventArgs> = ...
    AfterRowClick: EventEmitter<AfterRowClickEventArgs> = ...
    AfterRowDoubleClick: EventEmitter<AfterRowDoubleClickEventArgs> = ...
    AllowLoad: boolean = true
    DeferLoadUntilVisible: boolean = true

    When true (default), the inner grid does not fetch until this component's host element first scrolls into the viewport. This prevents related-entity grids on a form — which are always rendered in the DOM (the collapsible panel hides them via CSS, not @if) — from firing a RunView on form open while they're collapsed or below the fold. The first time the panel becomes visible (scrolled into view and expanded, giving the host non-zero area), the grid loads with its normal spinner. Set to false to restore eager loading for consumers that always want immediate data.

    Height: number | "auto" | "fit-content" = 'auto'
    Navigate: EventEmitter<FormNavigationEvent> = ...

    Emitted when a row is double-clicked and NavigateOnDoubleClick is true

    NavigateOnDoubleClick: boolean = true

    When true, double-clicking a row emits a Navigate event. Defaults to true.

    NewRecordValues: Record<string, unknown> = {}
    Params: RunViewParams | null = null
    SelectionMode: GridSelectionMode = 'single'
    ShowToolbar: boolean = true
    ToolbarConfig: GridToolbarConfig = {}

    Accessors

    Methods

    • The inner grid's "New" button bubbles up here. We re-emit as a new-record Navigate event so the host form (and Explorer's SingleRecordComponent) can call NavigationService.OpenNewEntityRecord and pre-populate the foreign-key fields from NewRecordValues.

      Parameters

      • event: { defaultValues: Record<string, unknown>; entityInfo: EntityInfo }

      Returns void