Hello Biren,
We were able to come up with a workaround: https://netcorerepl.telerik.com/GREvESPp25SX1cNd47
It involves handling the Navigate event:
.Events(ev => ev.Navigate("onNavigate"))
<script>
function setNewDate(scheduler, newStart, newEnd) {
scheduler.setOptions({
date: new Date(newStart),
startTime: new Date(newStart),
endTime: new Date(newEnd),
})
scheduler.date(new Date(newStart));
scheduler.view(scheduler.view().name);
}
function onNavigate(e) {
if(e.action == "next") {
e.preventDefault();
//create new start and end times that are 8h after the current ones
var newStart = e.sender.options.startTime.setHours(e.sender.options.startTime.getHours() + 8);
var newEnd = e.sender.options.endTime.setHours(e.sender.options.endTime.getHours() + 8);
setNewDate(e.sender, newStart, newEnd)
}
if(e.action == "previous") {
e.preventDefault();
//create new start and end times that are 8h before the ones
var newStart = e.sender.options.startTime.setHours(e.sender.options.startTime.getHours() - 8);
var newEnd = e.sender.options.endTime.setHours(e.sender.options.endTime.getHours() - 8);
setNewDate(e.sender, newStart, newEnd)
}
}
</script>
Regards,
Ivan Danchev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Telerik Team,
Please provide any fix for this option until it include with future release.
Thank you