Unable to edit data in the grid with the "EnableVirtualization" option enabled

Helllo,

I am trying to do a seemingly simple thing.
I want to edit one record, save it to the database and still see this record in the grid with "EnableVirtualization" enabled.
So far I have tried three different approaches, taken directly from your demo or forum examples, but unfortunately I ran into unforeseen obstacles.

First case: List binding
After scrolling a few pages, editing a record, and calling Grid.UpdateRow, the grid tries to refresh itself but renders empty, there are no records, only the toolbar and scrollbar are visible. Only after using the scrollbar does the data "come back" and you can see something, but you are usually on a completely different page than before and the edited record is not even visible.

Case Two: Observable Collection
After scrolling a few pages and editing the record, which automatically triggers a grid refresh, the grid renders correctly and you can see the records, but it automatically scrolls to the top of the screen, to the first record. Therefore, in this case also I do not see the edited record and unfortunately I do not know how to return to it. If I manually scroll the right number of pages, I will finally see it and see the updated data in it, so updating the data is fine

Case three: CustomAdaptor
The behavior is the same as in the first case, after refreshing the grid it looks as if it is empty, records are not rendered.

It seems to me that what I need is quite simple, but unfortunately I can't find a good solution. 
Of course, I know that these problems do not exist if you use Paging instead of Virtualization, but in the case of my systems it is unfortunately not possible.

I am asking for help and advice on this matter.

Best Regards
Martin


3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team November 23, 2020 12:52 PM UTC

Hi Marcin, 
 
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.  
  
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.   
 
Instead we suggest you to use Dialog mode of editing in Grid, 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer

MA Marcin November 23, 2020 06:37 PM UTC

Hello,

Thank you very much for your reply.
I hope that this functionality will be introduced soon.

Best Regards
Martin



RS Renjith Singh Rajendran Syncfusion Team November 24, 2020 02:02 PM UTC

Hi Martin, 

Thanks for your update. 

Please follow up on the shared feedback link for future updates regarding this feature. You can 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 


Loader.
Up arrow icon