Maintain scroll position after datachange while using virtual scrolling

Hi there

I am currently using the Scheduler component to display schedules while also grouping with resources, when I edit a item the data gets updated and the scheduler refreshes,

The issue I am having is the scroll position resets to the top, I have tried using the example code to store the top scroll position and then reset it onDataBound however the position is inaccurate. do you have any tips that may help to maintain scroll position when data changes.

Many thanks in advance :)

1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team May 18, 2021 02:11 PM UTC

Hi Vincent, 

Greetings from Syncfusion Support..! 

We have prepared a sample to reproduce your reported issue “when scroller does not remain in the dropped target position” but unfortunately, we were unable to reproduce your reported problem and the sample can be viewed from the following link. We have tried the following ways to replicate the issue at our end. 
  
  1. We have ensured the reported problem by preparing the sample with two levels of resource grouping with virtual scrolling enabled but unfortunately the events are maintained in the drop target position.
  2. By default, the scroller remains in the drop target position alone irrespective of the resources.
 
UG links:  
  
Kindly refer to the above sample, if the issue persists still share the below details to validate your reported issue and serve you better. 
 
  • Confirm whether the above sample is working properly at your side or not?
  • Confirm whether you are using the current (19.1.63v) package version for the Scheduler else share the installed package version for the Scheduler.
  • Confirm whether the issue is replicated in any specific browser/machine (Windows/Mac)?
  • Share the entire scheduler rendering code snippets.
  • If possible, replicate the issue in the above sample.
  • Share the issue replicating sample (if possible) to validate further at our end.
  
We will be happy to assist you..! 
  
Regards, 
Hareesh 



Marked as answer
Loader.
Up arrow icon