Skip to content
A smart PCF for model driven app subgrids
TypeScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
SmartGrid Initial Commit Jan 27, 2020
LICENSE Initial commit Jan 27, 2020 Update Jan 27, 2020
SmartGridParameters.JPG params Jan 27, 2020
smartgridgif.gif Add files via upload Jan 27, 2020


SmartGrid PCF control allows to create a new record directly from the subgrid without navigating to another screen.


  1. Import solution
  2. Add control to subgrid
  3. Give required parameters.

alt text

  • Primary Lookup: Logical name of the lookup field for the relationship. for example contact subgrid in the account is "*parentcustomerid_account",

  • Primary Entity Set: entity set name of the current entity where the subgrid is added .

This is to set the related lookup using web api, you can use Rest builder to get these parameter values correctly. for example if contact subgrid in account form is using parent customer relationship, to set the account lookup in contact following code is used var entity = {}; entity["parentcustomerid_account@odata.bind"] = "/accounts(xxxxx-xxxx-xxxx)";

alt text

Known bugs.

  • Does not support N:N
  • Validation for empty rows.
  • Does not support composite(customer lookups).
  • Poor CSS :)

Planned enahancements

  • Inline editing.
  • Validation for mandatory fields

If this helped you, consider supporting my PCF freebies Support via PayPal

You can’t perform that action at this time.