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
Please specify either a 'DefaultViewId' or a collection of 'ViewIds'

SubGrid (Many to Many Relationship)

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

Example
Please specify either a 'DefaultViewId' or a collection of 'ViewIds'

SubGrid Class

Inherits from FluentGridBase.
There might be parameters and/or methods shown here that are inherited from the component's base type but are not applicable to this component.

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?
CustomViewDefinitionsList<GridViewDefinition>?
Custom views to display in the dropdown.
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.
FullSizebool
False
HidePagingbool
False
Force the page size and paging components to be hidden.
Only do this when the number of items is known and the page size is set to something greater than the item count.
IsDirtybool
False
MaxHeightstring?
Max Height that the grid control should expand to.
MinHeightstring?
250px
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.
SelectedViewQueryParameterstring?
Query parameter to persist the selected view to.
SelectFromEntireRowbool
True
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.
ViewSortViewSort
NameAscending
Sort order of the views 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