Added Row During EditMode.Batch with virtualization not working
Using the code from the example. This does not allow you to add rows.
<SfGrid DataSource="@Orders" EnableVirtualization="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })" Height ="315">
<GridEditSettings Mode="EditMode.Batch" AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" IsPrimaryKey="true" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" EditType="EditType.DatePickerEdit" Format="d" TextAlign="TextAlign.Right" Width="130" Type="ColumnType.Date"></GridColumn>
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid>
@code{
public List<Order> Orders { get; set; }
protected override void OnInitialized()
{
Orders = Enumerable.Range(1, 75).Select(x => new Order()
{
OrderID = 1000 + x,
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
Freight = 2.1 * x,
OrderDate = DateTime.Now.AddDays(-x),
}).ToList();
}
public class Order {
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public DateTime? OrderDate { get; set; }
public double? Freight { get; set; }
}
}
SIGN IN To post a reply.
5 Replies
JB
jeremy buentello
October 2, 2021 08:39 PM UTC
All that I have added in the above example is
EnableVirtualization="true"
Mode="EditMode.Batch"
JB
jeremy buentello
October 2, 2021 08:53 PM UTC
I've uploaded a gif of this occurring. It seems like if you click on an area of the data grid where there is empty space, then the added record is then rendered on the grid. The same thing occurs when you try to cancel the add. You have to click on an empty area of the data grid after the cancel operation, then the added items will be removed from the grid
Attachment: Add_Error_deb1fea4.zip
JP
Jeevakanth Palaniappan
Syncfusion Team
October 4, 2021 06:05 AM UTC
Hi Jeremy,
Greetings from Syncfusion support.
We have checked your query and we would like to inform you that currently we don’t have support to perform inline/batch mode of editing in a VirtualScroll Grid. Since it is a known request, 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 feature in any of our upcoming releases.
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.
Regards,
Jeevakanth SP.
RO
rohan
December 22, 2021 04:26 AM UTC
Is this feature will be available near future?
Regards,
Rohan
JP
Jeevakanth Palaniappan
Syncfusion Team
December 23, 2021 07:11 AM UTC
Hi Rohan,
We have not planned specific release timeline for this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. Until then we appreciate your patience.
Regards,
Jeevakanth SP.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
JB jeremy buentello
- Oct 2, 2021 08:37 PM UTC
- Dec 23, 2021 07:11 AM UTC