Grid Refresh from DetailTemplate not working

Hi, in a DetailTemplate for DataGrid, when I delete a record from a child Grid, I want the deleted record to move to the child Grid of another row.

For example, in my video, when I delete "kenney's poi" from "Kenneys geofence groups - Points of Interests (POI)", I want it to move to 
"Unassigned - Points of Interests (POI)".

The deleted record does not show in the "Unassigned" row even after performing a 'Grid.Refresh()' for both parent & child tables. It will only appear if I refresh the entire page itself.

Why is the Refresh() method not refreshing the tables to show the moved record?

Thank you. 

OnActionComplete()


Attachment: Grid_Refresh_bug_452c828c.zip

3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team June 11, 2021 11:55 AM UTC

Hi Kenney, 

Greetings from Syncfusion support. 

We are not clear about the exact scenario you are facing this reported problem. We have prepared a sample based on your requirement. In the below sample, when deleting a row from the first childgrid, the row will be added to the second childgrid.  

We have updated the parent grid’s DataSource(removed row from Orders and added row based on 2nd childgrid’s EmployeeID) and called Refresh method of parent grid. Now based on the Query property applied in Grid inside DetailTemplate, this will display the row in second childgrid. 

Kindly refer the above attached sample, and if you are still facing difficulties then the following details would be helpful for us to proceed further. 

  1. Share the codes you are using in SetToUnassigned.
  2. Share with us a simple issue reproducing sample for us to validate based on your scenario.
  3. Share the complete parent and child grid rendering codes.

Please get back to us if you need further assistance. 

Regards, 
Renjith R 


Marked as answer

KP Kenney Phan June 11, 2021 06:05 PM UTC

This actually helped me. Thank you!


RS Renjith Singh Rajendran Syncfusion Team June 14, 2021 04:50 AM UTC

Hi Kenney, 

Thanks for your update. Please get back to us if you need further assistance. 

Regards, 
Renjith R 


Loader.
Up arrow icon