Incorrect order after save parent record with edit dialog then expand that record

Hi team,
I got an issue and I hope you could check it.
I have a remote treegrid which uses the mode dialog.
After finish saving a parent record, when I click to expand it, the order of records are incorrect (Task 1a should be displayed as child of Task1)


I debug and it seems after I save the record, the treegrid.grid CurrentViewRecords is updated with new data. But when expand the record, the grid currentviewrecords are compare with the expanded row, which is different. Because of that the index is incorrect and the child record is inserted on top of the parent record in the result array.


I've updated to the latest version of all syncfusion packages. Could you please help to check?

Thanks.

5 Replies 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team November 16, 2020 02:30 PM UTC

Hi Ricardo, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: After finish saving a parent record, when I click to expand it, the order of records are incorrect (Task 1a should be displayed as child of Task1) 
 
We have created sample with remote data and dialog edit mode with newRowPosition as “Child” in latest version(18.3.0.48). But we are unable to reproduce the issue at our end. 
 
We have shared you sample for your reference. You can download the same from the below location, 
 
Kindly share us the below details so that we could proceed further, 
  1. Share us complete Tree Grid rendering code(both client and server end)
  2. Kindly confirm us whether you are using the “newRowPosition” as “Child
  3. Share us video demo and screenshots of error with complete stack trace(if any)
  4. Also please confirm us whether your product version is 18.3.0.48
  5. If possible, share us issue reproducible sample or reproduce the issue in the sample shared above.
 
NOTE: For remote date, we need to handle CRUD operation at server end. Kindly check the below help documentation, 
 
Regards, 
Padmavathy Kamalanathan 



RI Ricardo November 17, 2020 09:39 AM UTC

Hi Padma,
I could not access your sample above at https://www.syncfusion.com/downloads/support/directtrac/159697/ze/Tree_Grid_Remote_CRUD1728368577
Could you please change the permission?

Thanks!


PK Padmavathy Kamalanathan Syncfusion Team November 18, 2020 02:20 PM UTC

Hi Ricardo, 
 
Sorry for the inconvenience caused. 
 
We have shared sample again here. You can download the same from the below link, 
 
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 



RI Ricardo November 19, 2020 08:19 AM UTC

Hi Padma,
Thanks I've downloaded the sample file successfully
As you can see in the attached video, I use your sample without any modification.
When I save the parent record, then click to expand it, it does not expand. On the second click, it expands but the order of the children nodes are incorrect, they all move to above of the parent node.

Please help to check and let me know if you need anything else.

Attachment: 20201119_11h13_21_b1de2013.zip


PK Padmavathy Kamalanathan Syncfusion Team November 20, 2020 03:53 PM UTC

Hi Ricardo, 
 
Sorry for the inconvenience caused. 
 
Initially we have misinterpreted your query. After checking your video, we are be able to understand and reproduce the reported issue at our  end. We have considered it as a bug in this specific scenario (incorrect order of child data when edit parent record and fetch it’s child data from server end )and logged report for the same. Thank you for taking time to report this issue "Incorrect order of child data after editing, saving and expanding remote parent record" and helping us improve our product. Fix for this issue will be included in our patch release which is expected to be rolled out in the second week of December 2020. 
 
You can track the current status of your request, review the proposed resolution timeline and contact us for any further queries through this link, 
 
 
Note: To view the above feedback, kindly login into your account. 
 
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 


Marked as answer
Loader.
Up arrow icon