1) Add Blazor Code Generator to list of controls above when posting new thread
2) Adding a grid control with the code generator works, but needs the following changes:
2a. Selecting the primary key does not translate to the grid unless you also select the primary key column. Normally you don't want the PK to be visible, so either assign the PK field to the grid itself, or ensure that the PK column gets added, but not visible.
2b. When specifying Dialog as the Editing mode, the code generator does not actually generate a Template.
<Template>
@{
var issue = (context as Issue);
}
<div>
<div class="form-row">
<div class="form-group col-md-12">
<SfTextBox ID="IssueSubject" @bind-Value="@issue.IssueSubject" FloatLabelType="FloatLabelType.Always" Placeholder="Subject"> </SfTextBox>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
next control goes here
</div>
</div>
</div>
</Template>
2c. The code generator does not account for the display of foreign keys properly. In order to display values properly, this has to happen to the column definition:
<GridColumn ForeignKeyField="ProjectId"
ForeignKeyValue="ProjectName"
DataSource="@ProjectsList"
Field=@nameof(Issue.ProjectId) HeaderText="Project" Width="100"></GridColumn>
// here you could suggest to the developer to add a data source for "ProjectsList" if you can't generate this code block.
2d. The use of "ForeignKeyValue" suggests that we are referring to the actual FK value, and not the description. The reference should be "ForeignKeyDescription" or "ForeignKeyText".
Cheers,
Miles