SubGrid (One to Many Relationship)

Here is an example that demonstrates the use of a SubGrid component for a 1:N relationship.
The grids below are linked to an 'Account' record.

Example
Active ContactsActive Contacts Subgrid ViewAll ContactsContacts: Influenced Deals That We WonContacts: No Campaign Activities in Last 3 MonthsContacts: No Orders in Last 6 MonthsContacts: Responded to Campaigns in Last 6 MonthsInactive ContactsMy Active ContactsMy Connections
New

SubGrid (Many to Many Relationship)

Here is an example that demonstrates the use of a SubGrid component for a N:N relationship.

Example
Active RegionsInactive Regions
Link Existing

SubGrid Class

Parameters

Name
Type
Default
Description
AllowChangingItemsPerPagebool
True
AllowEditbool
False
Should the option be available for the user to turn on inline editing for the grid.
AllowEditOnRowDoubleClickbool
True
If a button is present that has theset to true,
and this is set to 'true', then theevent delegate will be called for the record.
AllowSearchbool
True
Should the user be allowed to search the grid.
BorderVisiblebool
True
ButtonsRenderFragment?
ConstrainingContainerConstrainingContainer?
DefaultItemsPerPageint
50
Default number of records to load on a page.
DefaultViewIdGuid?
Id of the view that the grid should display upon initial load.
Editablebool
False
Is inline editing turned on for the grid.
IsDirtybool
False
MaxHeightstring?
Max Height that the grid control should expand to.
MinHeightstring?
300px
Minimum height that the grid control should occupy.
ModeGridMode
Default
PageSizesIEnumerable<int>
Collection of available page sizes for the grid.
PagingModeGridPagingMode
Paged
RecordTableRecord?
RelationshipNamestring
SelectedRecordsIEnumerable<TableRecord>
Records that are currently selected in the Grid.
SelectFromEntireRowbool
False
SelectModeDataGridSelectMode
Multiple
Titlestring?
Name to display when the view dropdown is not displayed.
ViewIdsIEnumerable<Guid>?
List of id's of the views that the grid should limit to in the view dropdown.

Events

Name
Type
Description
EditableChangedEventCallback<bool>
SelectedRecordsChangedEventCallback<IEnumerable<TableRecord>>

Methods

Name
Parameters
Type
Description
ClearSelectionAsyncTask
RefreshAsyncbool forceRefresh
Task
Instructs the grid to re-fetch and render the current data from the supplied data source.
Validatebool