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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈