getRelationship (Client API reference)
Gets information about the relationship used to filter the subgrid.
Grid types supported
Read-only and editable grids
Syntax
gridContext.getRelationship();
Return Value
Type: Object.
Description: A relationship object with the following:
- attributeName: String. Name of the column.
- name: String. Name of the relationship.
- navigationPropertyName: String. Name of the navigation property for this relationship.
- relationshipType: Number. Returns one of the following values to indicate the relationship type:
- 0: OneToMany
- 1: ManyToMany
- roleType: Number. Returns one of the following values to indicate the role type of relationship:
- 1: Referencing
- 2: AssociationEntity
Remarks
To get the gridContext
, see Getting the grid context.
Related articles
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za