window in schedule the current time

Good day 

it is possible that when opening the schedule in the current day, go to the current time, but only when it is stopped in the current day, pq if it already happens of day if it shows the one that programs in the WorkHours


3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team November 10, 2017 09:56 AM UTC

Hi Veronica, 
 
Thank you for contacting Syncfusion support. 

We suspect that your requirement is to populate the current system time in appointment window if any of the Today’s date cell is double clicked. Appointment window will show only the clicked cell time, for example, if  6 Am – 6.30 AM cell is double clicked in Today’s date then the respective time (6 AM-6.30 AM) will be populated in the window. It is default behavior. 

Regards, 
Karthigeyan 





VO veronica orozco November 12, 2017 03:56 PM UTC

No, what I'm trying to say, is that when the programmer opens I'm taken directly to the current time


Attachment: 1_e013646.7z


KK Karthigeyan Krishnamurthi Syncfusion Team November 13, 2017 07:24 AM UTC

Hi Veronica,  
  
Thanks for your update. 
 
We have prepared the below sample to adjust the scrollbar position based on the current time. 
 
<Code> 
create: "onCreate", 
actionComplete: "onComplete" 
 
function onCreate() { 
    var scheduleObj = $("#Schedule1").data("ejSchedule"); 
    var scrollerObj = scheduleObj.element.find('div#' + scheduleObj._id + '_scroller').data("ejScroller"); 
    if ($(".e-highlightcurrenttimeline").length != 0 && (!ej.isNullOrUndefined(scrollerObj))) { 
        if (scheduleObj.model.orientation == "horizontal") 
            scheduleObj.element.find("div#" + scheduleObj._id + "_scroller").ejScroller({ scrollLeft: (parseInt($(".e-highlightcurrenttimeline").css("left")) - 100) }); 
        else 
            scheduleObj.element.find("div#" + scheduleObj._id + "_scroller").ejScroller({ scrollTop: (parseInt($(".e-highlightcurrenttimeline").css("top")) - 100) }); 
    } 
} 
function onComplete(args) { 
    if (args.requestType == "dateNavigate" || args.requestType == "viewNavigate") 
        onCreate(); 
} 
</Code> 
 
Note: Above sample is made in JS platform for your reference and the same can be achieved in ASP platform too. 
 
Regards,  
Karthigeyan  



Loader.
Up arrow icon