when I refresh treeGrid after reset dataSource, It's very slowly.

Hey, I met a problem when i use virtual treegrid.

There are some of actions to CRUD the data, and when the remote data was be changed by other user. i need to change the datasource and refresh treegrid, it is almost 50k rows.

and when I reset datasource by change treegrid.datasource, the data will start from error row, and show same page when i tried to scroll.

but when I use 'splice' to change datasource, 'refresh' is very solwly, and make the browser be stuck.



6 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 21, 2022 02:33 PM UTC

Hi Simon Li


Query#:- When I reset datasource by change treegrid.datasource, the data will start from error row, and show same page when i tried to scroll.


We are able to replicate the problem(show same page when i tried to scroll) when we change the datasource. We will validate the problem and provide you further details by on or before 27th June 2022. Until then we appreciate your patience.


Query#:- but when I use 'splice' to change datasource, 'refresh' is very solwly, and make the browser be stuck.


Share details of time delay you have faced and code details or if possible share us the issue replicable sample for this scenario.


Regards,

Farveen sulthana T



SL Simon Li June 22, 2022 07:05 AM UTC

Hi,because the refresh will make the browser be stuck, I tried to use addRecord, deleteRecord, updateRow to CURD the visible table.But when i use 'addRecord' to add record as 'Child', it showed error index. when i use 'deleteRecord', when i delete child of parent one by one, the expand icon will miss, the parent row still have children.

and there is video to record my action



SL Simon Li June 22, 2022 07:08 AM UTC

there is the video


Attachment: screenshot_6640fc60.zip


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 23, 2022 03:52 PM UTC

Hi Simon Li,


We are working on your reported queries with high Priority and get back to you by on or before 28th June 2022. Until then we appreciate your patience.


Meanwhile we will contact you if any details required.


Regards,

Farveen sulthana T



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 28, 2022 02:47 PM UTC

Hi Simon Li,


We appreciate your patience.


                     Queries

  Solution

  1.  When I reset datasource by change treegrid.datasource, the data will start from error row, and show same page when i tried to scroll.

Further analyzing, we have already logged the defect report for the same scenario. The fix for this issue will be included in our First weekly patch release(expected to be July 13, 2022) after Volume 2, main release

       2)    but when I use 'splice' to change datasource, 'refresh' is very solwly, and make the browser be stuck.

 

We have prepared sample and changed the dataSource using Splice but we are unable to replicate the problem at our end. Refer to the sample link:-

https://stackblitz.com/edit/angular-fcb1gw-ck6mzo?file=app.component.ts

 

So share us the details such as Time delay you have faced with Video demo or replicate the issue in the above sample and revert us for further validation.

 

 

  1. when i use 'deleteRecord', when i delete child of parent one by one, the expand icon will miss, the parent row still have children.

 

 

 We are able to replicate the problem from your provided details. On further validation, we have confirmed this issue as a bug and logged defect report for the same “Parent Icon disappears when we delete the multiple child records, still child records are present”. 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 technical feasibility and Product Development Life Cycle) and including the defect fix in our Third weekly patch release(July 20, 2022)  after Volume 2 main release. Until then we appreciate your patience.

 

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this Feedback link.

https://www.syncfusion.com/feedback/35968/parent-icon-disappears-when-we-delete-the-multiple-child-records-still-child

 

Disclaimer :- Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.

 

  1.  But when i use 'addRecord' to add record as 'Child', it showed error index.

 

We are not able to replicate the problem at our end(Child record has been added properly under the parent).

Sample link:- https://stackblitz.com/edit/angular-ioacya-iwygjg?file=app.component.html,app.component.ts

 

We need some more additional details about your requirement. Share us the following details.

 

  1. Complete TreeGrid code example.
  2. Exact issue you have faced.(Where you need to add the new record). (In your provided video demo you have added Field1:60003 records and while collapsing Field1:6 it has been collapsed under  the parent 6)

 

  1. Screenshot of you Expected and Output scenarios.
  2. If possible replicate demonstrate in the above attached sample and revert us back.

 


Regards,

Farveen sulthana T



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team September 29, 2022 09:49 AM UTC

Hi Simon Li,


Sorry for the delayed response.


The reported problem “Data replicates on scroll on changing the datasource” and “parent Icon disappears when delete multiple records” has been fixed and included in our latest release. So we request to upgrade into latest version 20.3.47 or minimum of 20.2.38 to resolve the problem.


Regards,
Farveen sulthana T


Loader.
Up arrow icon