Grid Refresh() has to be called twice to refresh with Virtualized scrolling

Hi,

When using SfGrid with Virtualization enabled, and a customer data adapter, if records are added or removed from the underlying data source the grid.Refresh() does not refresh the grid unless it is executed twice.  The data adapter is Read() on every Refresh() call, but the grid itself does not reflect the added/deleted rows unless executed twice.  

Furthermore, if within a "refresh" method you call grid.Refresh() x2 the grid still won't refresh, you have to trigger the refresh event callback method twice.

Sample project included.  Steps to reproduce:
  1. Click "ScrollIssue" menu
  2. Click Insert button 1 or more times
  3. Click Refresh - grid does not show Insert button, although data adapter Read() is executed
  4. Click Refresh again - grid now refreshes
Thanks,
James

Attachment: Syncfusion_Scroll_Issue_3a89d9b.zip

1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team December 18, 2020 12:54 PM UTC

Hi James, 

Greetings from Syncfusion support. 

We have confirmed this as a bug and logged a defect report Problem with refreshing data using Refresh() method when EnableVirtualization in Gridfor the same. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and including the defect fix in our upcoming bi-weekly release which is expected to be rolled out in the month of January 2021.  
    
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, 
Renjith R 


Marked as answer
Loader.
Up arrow icon