Grid virtualization and delete row not working

I am using grid to show some data, i am deleting a row while EnableVirtualization is true and calling refresh method but its not working and not showing new list after deleting even if it has been deleted from the list



3 Replies

JP Jeevakanth Palaniappan Syncfusion Team September 14, 2021 10:41 AM UTC

Hi Sadi, 

Greetings from Syncfusion support. 

We are not clear about your exact scenario. We need the following details to further proceed on this scenario, kindly get back to us with the following details to proceed further. 

  1. Share with us a video demo showing the replication of the problem you are facing.
  2. Are you using Grid’s default inbuilt Delete feature? Deleting the selected row by clicking on Delete toolbar button?
  3. Or are you deleting the row from List bound to Grid and later refreshing Grid to reflect the changes?
  4. Share with us details of custom code(if you are using any custom code for deleting)
  5. Share the complete Grid rendering codes.
  6. If possible, share with us a simple issue reproducing sample for us to validate based on your scenario.

The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Regards, 
Jeevakanth SP. 



SA Sadi September 17, 2021 05:56 AM UTC

Hello,

1- i am not using inbuilt delete method but  deleting the row from List bound to Grid and later refreshing Grid to reflect the changes

2- i can't share the code for now because i rewrite sfgrid component to custom component but i will declare the situation:

i have list of some class it displays every column correctly i added custom column and used column template to add button and send the selected object to delete method - on delete method i deleted the object from the list and refresh the grid but it did not rendered correctly while i am using row virtualization but when i put virtualization off it works fine. to solve this i refresh the grid on data-bound and it worked  m question is this the best solution? 



JP Jeevakanth Palaniappan Syncfusion Team September 20, 2021 02:43 PM UTC

Hi Sadi, 

We have validated your query based on the provided information but we are unable to reproduce the reported problem from our end. Please refer the below sample and video demo for your reference. 


Also, you can call the Refresh method in the DataBound event but you have to ensure that it is should not repeatedly invoke for every action. 

If you still face any issues then kindly  reproduce the reported problem in the above provided sample which will be helpful for us to proceed further. 

Regards, 
Jeevakanth SP. 




Loader.
Up arrow icon