Hello,
Is it possible to add a new row to a data grid below the previous one?
<RadzenFieldset Text="Proforma Invoices">
<RadzenButton ButtonStyle="ButtonStyle.Success" Icon="add_circle" Text="Add" Click="@InsertRow" Disabled="@(editMode == DataGridEditMode.Single && proformasToInsert.Count() > 0)" />
<RadzenDataGrid @ref="proformaGrid" AllowAlternatingRows="false" AllowFiltering="false" AllowPaging="false" PageSize="1" AllowSorting="false" EditMode="DataGridEditMode.Single"
Data="@proformaInvoices" TItem="ProformaInvoice" RowUpdate="@OnUpdateRow" RowCreate="@OnCreateRow">
<Columns>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="orderNumber" Title="Order Number">
<EditTemplate Context="item">
<RadzenTextBox @bind-Value="item.orderNumber" Style="width:200px; display: block" Name="Order Number" aria-label="Enter Order Number" />
</EditTemplate>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="responsible" Title="Responsible">
<EditTemplate Context="item">
<RadzenTextBox @bind-Value="item.responsible" Style="width:200px; display: block" Name="Responsible" aria-label="Enter Responsible" />
</EditTemplate>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="product" Title="Product">
<EditTemplate Context="item">
<RadzenTextBox @bind-Value="item.product" Style="width:200px; display: block" Name="Product" aria-label="Enter Product" />
</EditTemplate>
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="productCode" Title="Product Code"/>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="productDescription" Title="Product Description"/>
<RadzenDataGridColumn TItem="ProformaInvoice" Property="productPrice" Title="Product Price" />
<RadzenDataGridColumn TItem="ProformaInvoice" Context="item" Filterable="false" Sortable="false" TextAlign="TextAlign.Right" >
<EditTemplate Context="item">
<RadzenButton Icon="check" ButtonStyle="ButtonStyle.Success" Variant="Variant.Flat" Size="ButtonSize.Medium" Click="@((args) => SaveRow(item))" aria-label="Save">
</RadzenButton>
<RadzenButton Icon="close" ButtonStyle="ButtonStyle.Light" Variant="Variant.Flat" Size="ButtonSize.Medium" class="rz-my-1 rz-ms-1" Click="@((args) => CancelEdit(item))" aria-label="Cancel">
</RadzenButton>
</EditTemplate>
</RadzenDataGridColumn>
</Columns>
</RadzenDataGrid>
</RadzenFieldset>