Unable to add a row

I'm trying to add a row by clicking the Add button on the grid toolbar. I was expecting a new blank row to appear but nothing happens.

<SfGrid @ref="grid" DataSource="@model.Orders" EnableVirtualization="true" TValue="Order" AllowSelection="true" AllowSorting="true" AllowReordering="true" AllowResizing="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<GridSelectionSettings Type="Syncfusion.Blazor.Grids.SelectionType.Single"></GridSelectionSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" AllowEditOnDblClick="true" Mode="@EditMode.Normal"></GridEditSettings>
<GridEvents TValue="Order" OnActionComplete="ActionCompleteHandler" />
<GridColumns>
<GridColumn Field=@nameof(Order.Id) HeaderText="Id" IsPrimaryKey="true" IsIdentity="true" Visible="false"></GridColumn>
<GridForeignColumn Field=@nameof(Order.ProductId) ForeignKeyField="Id" ForeignKeyValue="Name" ForeignDataSource="products" HeaderText="Product Name"></GridForeignColumn>
<GridColumn Field=@nameof(Order.ConnectOnHand) HeaderText="Connect On Hand*" AllowEditing="false"></GridColumn>
<GridColumn Field=@nameof(Order.OrderQuantity) HeaderText="Order Quantity"></GridColumn>
<GridColumn Field=@nameof(Order.LotCodes) HeaderText="Lot Codes"></GridColumn>
<GridColumn Field=@nameof(Order.PalletSpaces) HeaderText="Pallet Spaces"></GridColumn>
</GridColumns>
</SfGrid>

3 Replies

RS Renjith Singh Rajendran Syncfusion Team April 23, 2021 05:50 AM UTC

Hi Andy, 

Greetings from Syncfusion support. 

Currently, we don’t have support to perform editing in a VirtualScroll Grid. We have considered this as a feature and logged a feature task “Provide support for Normal and Batch editing in Grid with Virtual scrolling” for this requirement. We have planned to implement this and include this feature in any of our upcoming releases.  
  
We are closing this incident for now. You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.   
 
And we would like to inform you that, we have support for editing using Dialog mode in Virtual scroll Grid, 

Regards, 
Renjith R 




AR Andy Richard April 26, 2021 03:11 PM UTC

So I guess it means EnableVirtualization="true" is the culprit. I've removed that and now it creates a new row. Thank you.


RS Renjith Singh Rajendran Syncfusion Team April 27, 2021 03:33 AM UTC

Hi Andy, 

Yes, you can remove the EnableVirtualization to overcome this scenario. Please get back to us if you need further assistance. 

Regards, 
Renjith R 


Loader.
Up arrow icon