You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/reference/events/grid-onrecordselect.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ contributors:
15
15
---
16
16
# Grid OnRecordSelect event (Client API reference)
17
17
18
-
The `OnRecordSelect` event occurs when a single row (record) is selected in the editable grid. This event doesn't occur if a user selects different cells in the same row, or selects multiple rows.
18
+
The `OnRecordSelect` event occurs when a single row (record) is selected in an editable grid. This event doesn't occur if a user selects different cells in the same row, or selects multiple rows.
19
19
20
20
## Example: Override the default open behavior in model-driven grids
21
21
22
22
When you want to customize the way that a table record opens from the [Power Apps grid control](../../../../../maker/model-driven-apps/the-power-apps-grid-control.md), you can control how this opens with a JavaScript function associated with the grid `OnRecordSelect` event.
23
23
24
-
The following example ensures that the record opens using the form specified `pageInput``formId` value using the [Xrm.Navigation.navigateTo](../Xrm-Navigation/navigateTo.md) method.
24
+
The following example ensures that the record opens using the form specified `pageInput``formId` value using the [Xrm.Navigation.navigateTo](../Xrm-Navigation/navigateTo.md) method. Note that in this example the form and grid must belong to the same entity.
25
25
26
26
### Step 1: Create a web resource
27
27
@@ -46,14 +46,14 @@ More information: [Create or edit model-driven app web resources](../../../../..
46
46
47
47
### Step 2: Enable Power Apps Grid Control
48
48
49
-
Follow these steps to enable the **Power Apps Grid Control** as the main grid (table view) or within a model-driven form subgrid:
49
+
Follow these steps to enable the **Power Apps grid control** as the main grid (table view) or within a model-driven form subgrid:
50
50
51
51
-[Use as main grid](../../../../../maker/model-driven-apps/the-power-apps-grid-control.md#add-the-power-apps-grid-control-to-views-for-an-entity)
52
52
-[Use as subgrid](../../../../../maker/model-driven-apps/the-power-apps-grid-control.md#add-the-power-apps-grid-control-to-a-subgrid)
53
53
54
54
### Step 3: Register the custom behavior on OnRecordSelect Event
55
55
56
-
When you enable the **Power Apps Grid Control**, an **Events** tab appears. Select the **Events** tab:
56
+
When you enable the **Power Apps grid control**, an **Events** tab appears. Select the **Events** tab:
57
57
58
58
1. Under the **Form Libraries** section, add the Form Library from the web resource created.
59
59
1. Under the **Event Handlers** section, select the event **OnRecordSelect** and select **Add** and a popup appears.
0 commit comments