Scroll to current time

Hi! How can I scroll to current time (red vertical line) in timeline view.

Thank you!

3 Replies 1 reply marked as answer

PN Praveenkumar Narasimhanaidu Syncfusion Team April 19, 2021 12:44 PM UTC

Hi Huye, 
  
Greetings from Syncfusion support..! 
  
You can scroll to current time in timeline view by using scheduler scrollTo public method. We have also prepared a sample for your reference which can be viewed from following link. 
  
App.component.ts 
public onDataBound() { 
    let currTimeDate = new Date(); 
    let hoursstring = 
      currTime.getHours() < 10 
        ? "0" + currTime.getHours().toString() 
        : currTime.getHours().toString(); 
    let minutesstring = currTime.getMinutes().toString(); 
    let timestring = hours + ":" + minutes; 
    this.scheduleObj.scrollTo(timenew Date()); 
  } 
  
For more information, please refer to the following documentation links. 
  
  
Kindly try the above solution and get back to us if you need any further assistance. 
  
Regards, 
Praveenkumar. 


Marked as answer

HH Huye Hieu April 29, 2021 05:22 AM UTC

Thank you very much. I'm done!


VD Vinitha Devi Murugan Syncfusion Team April 30, 2021 07:02 AM UTC

 
Thanks for your update. 
 
You are most welcome😊 
 
Regards, 
Vinitha 


Loader.
Up arrow icon