We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Position the scroll in the current time

Hello, good day ^^
When you open the calendar, can you position the scroll in the current time?

like this for example....

THANK YOU :D

Attachment: Captura_de_Pantalla_20190425_a_la(s)_19.22.25.png_d7cb69f5.zip

1 Reply

NR Nevitha Ravi Syncfusion Team April 26, 2019 09:55 AM UTC

Hi Marco, 

Greetings from Syncfusion Support. 

Yes we can position the scroll to current time using the public method scrollTo on ‘dataBound’ event of the scheduler. We have prepared a sample for the same which can be downloaded from the following link. 

onDataBound: function(args) { 
      if (this.flag) { 
        let intl = new Internationalization(); 
        this.$refs.scheduleObj.scrollTo(intl.formatDate(new Date(), { skeleton: 'Hm' })); 
        this.flag = false; 
     
 

Please try the sample and let us know if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon