Tip #550: Subgrids and scripts

One of the Easter Eggs in CRM Online 2015 Update 1/CRM 2016 are the ability to execute scripts when subgrids load. With this enhancement, CRM developers can set event handlers for the OnLoad event of the subgrid. Scripts can be used to:

  • Get the current view selected in the view selector
  • Change the view of the subgrid to a different view.
  • Get the data rows from the grid.
  • Get the selected rows of the subgrid.

For more details see the “Write scripts for subgrids” section of the CRM 2016 SDK.

Leave a Reply

Your email address will not be published. Required fields are marked *